1 <% if not (@output_of.andand.any? or @log_of.andand.any?) %>
2 <p><i>No source information available.</i></p>
5 <% if @output_of.andand.any? %>
6 <p><i>This collection was the output of:</i><br />
7 <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %>
8 <% pipeline.components.each do |cname, c| %>
9 <% if c[:output_uuid] == @object.uuid %>
10 <b><%= cname %></b> component of pipeline <b><%= link_to_if_arvados_object(pipeline, friendly_name: true) %></b>
11 <% if c.andand[:job].andand[:finished_at] %>
12 <b>finished at <%= c[:job][:finished_at] %></b>
20 <% if @log_of.andand.any? %>
21 <p><i>This collection contains log messages from:</i><br />
22 <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
23 jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %>
24 <%= link_to_if_arvados_object(job, friendly_name: true) %><br />