Merge branch '3198-inode-cache' refs #3198
[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   <p><i>This collection was the output of:</i><br />
11     <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %>
12       <% pipeline.components.each do |cname, c| %>
13         <% if c[:output_uuid] == @object.uuid %>
14           <b><%= cname %></b> component of <b><%= link_to_if_arvados_object(pipeline, friendly_name: true) %></b>
15           <% if c.andand[:job].andand[:finished_at] %>
16             finished at <%= render_localized_date(c[:job][:finished_at]) %>
17           <% end %>
18           <br>
19         <% end %>
20       <% end %>
21     <% end %>
22   </p>
23 <% end %>
24
25 <% if @log_of.andand.any? %>
26   <p><i>This collection contains log messages from:</i><br />
27     <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
28                                          jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %>
29       <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
30     <% end %>
31   </p>
32 <% end %>