X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f27d8fa4c8f10989d1066df4df9c8995ee755f5..00573cf7d28472bf926e8f610a256cd991879c8b:/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 3d8032b4c2..ddcdc12343 100644 --- a/apps/workbench/app/views/collections/_show_source_summary.html.erb +++ b/apps/workbench/app/views/collections/_show_source_summary.html.erb @@ -7,8 +7,15 @@ <% end %> <% if @output_of.andand.any? %> -

This collection was the output of:
- <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %> + <% 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) %> @@ -25,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 %>