X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aea4b0cd7553dfb27c3e6c448fcad349284d6cf4..123153139bbee3674c81325653d87fa19ffbe0e4:/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 e3f29952ff..ddcdc12343 100644 --- a/apps/workbench/app/views/collections/_show_source_summary.html.erb +++ b/apps/workbench/app/views/collections/_show_source_summary.html.erb @@ -1,12 +1,30 @@ +

Content size:
+ <%= pluralize(@object.manifest.files_count, "file") %> totalling + <%= raw(human_readable_bytes_html(@object.manifest.files_size)) %>

+ <% if not (@output_of.andand.any? or @log_of.andand.any?) %>

No source information available.

<% end %> <% 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.limit(5).filter([["components", "like", "%#{@object.uuid}%"]]) %> + <% + message = "This collection was the output of the following:" + if pipelines.items_available > pipelines.results.size + message += ' (' + (pipelines.items_available - pipelines.results.size).to_s + ' more results are not shown)' + end + %> +

<%= message %>
+ <% pipelines.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 %>

<% end %> @@ -14,7 +32,7 @@ <% if @log_of.andand.any? %>

This collection contains log messages from:
<%= render_arvados_object_list_start(@log_of, 'Show all jobs', - jobs_path(filters: [['log', '=', @object.uuid]].to_json)) do |job| %> + jobs_path(filters: [['log', '=', @object.portable_data_hash]].to_json)) do |job| %> <%= link_to_if_arvados_object(job, friendly_name: true) %>
<% end %>