X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6db406e9a2fc78ed204460deb73151f44d94b030..33b41435dd88f58f5bc115f19e84936fef405b91:/apps/workbench/app/views/collections/_show_source_summary.html.erb diff --git a/apps/workbench/app/views/collections/_show_source_summary.html.erb b/apps/workbench/app/views/collections/_show_source_summary.html.erb index 7479a3066b..3d8032b4c2 100644 --- a/apps/workbench/app/views/collections/_show_source_summary.html.erb +++ b/apps/workbench/app/views/collections/_show_source_summary.html.erb @@ -1,11 +1,6 @@ -<% if @object.uuid.match /[0-9a-f]{32}/ %> -
Found in collections:
-
-<% cols = Collection.filter([["portable_data_hash", "=", @object.portable_data_hash]]).each do |c| %>
- <%= link_to_if_arvados_object c.owner_uuid, {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %>
-<% end %>
-
Content size:
+ <%= pluralize(@object.manifest.files_count, "file") %> totalling
+ <%= raw(human_readable_bytes_html(@object.manifest.files_size)) %>
No source information available.
@@ -13,9 +8,16 @@ <% if @output_of.andand.any? %>This collection was the output of:
- <%= render_arvados_object_list_start(@output_of, 'Show all jobs',
- jobs_path(filters: [['output', '=', @object.uuid]].to_json)) do |job| %>
- <%= link_to_if_arvados_object(job, friendly_name: true) %>
+ <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %>
+ <% pipeline.components.each do |cname, c| %>
+ <% if c[:output_uuid] == @object.uuid %>
+ <%= cname %> component of <%= link_to_if_arvados_object(pipeline, friendly_name: true) %>
+ <% if c.andand[:job].andand[:finished_at] %>
+ finished at <%= render_localized_date(c[:job][:finished_at]) %>
+ <% end %>
+
+ <% end %>
+ <% end %>
<% end %>