X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6eb3d1fb8fe71623fa63da46c250184cf2e4fbb8..257d60253246952b435cea23b1912af80ea2c6d6:/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 %>