8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / collections / _show_source_summary.html.erb
1 <p><i>Content size:</i><br />
2   <%= pluralize(@object.manifest.files_count, "file") %> totalling
3   <%= raw(human_readable_bytes_html(@object.manifest.files_size)) %></p>
4
5 <% if not (@output_of.andand.any? or @log_of.andand.any?) %>
6   <p><i>No source information available.</i></p>
7 <% end %>
8
9 <% if @output_of.andand.any? %>
10   <% pipelines = PipelineInstance.limit(5).filter([["components", "like", "%#{@object.uuid}%"]]) %>
11   <%
12     message = "This collection was the output of the following:"
13     if pipelines.items_available > pipelines.results.size
14       message += ' (' + (pipelines.items_available - pipelines.results.size).to_s + ' more results are not shown)'
15     end
16   %>
17   <p><i><%= message %></i><br />
18     <% pipelines.each do |pipeline| %>
19       <% pipeline.components.each do |cname, c| %>
20         <% if c[:output_uuid] == @object.uuid %>
21           <b><%= cname %></b> component of <b><%= link_to_if_arvados_object(pipeline, friendly_name: true) %></b>
22           <% if c.andand[:job].andand[:finished_at] %>
23             finished at <%= render_localized_date(c[:job][:finished_at]) %>
24           <% end %>
25           <br>
26         <% end %>
27       <% end %>
28     <% end %>
29   </p>
30 <% end %>
31
32 <% if @log_of.andand.any? %>
33   <p><i>This collection contains log messages from:</i><br />
34     <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
35                                          jobs_path(filters: [['log', '=', @object.portable_data_hash]].to_json)) do |job| %>
36       <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
37     <% end %>
38   </p>
39 <% end %>