Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / apps / workbench / app / views / collections / _show_source_summary.html.erb
1 <% if not (@output_of.andand.any? or @log_of.andand.any?) %>
2   <p><i>No source information available.</i></p>
3 <% end %>
4
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 <b><%= link_to_if_arvados_object(pipeline, friendly_name: true) %></b>
11           <% if c.andand[:job].andand[:finished_at] %>
12             finished at <%= render_localized_date(c[:job][:finished_at]) %>
13           <% end %>
14           <br>
15         <% end %>
16       <% end %>
17     <% end %>
18   </p>
19 <% end %>
20
21 <% if @log_of.andand.any? %>
22   <p><i>This collection contains log messages from:</i><br />
23     <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
24                                          jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %>
25       <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
26     <% end %>
27   </p>
28 <% end %>