X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/370366c748b22f5c230bf11e209a190612c088e7..1d5934b254afc9e6082a154b5c365df968b3a65f:/apps/workbench/app/views/collections/_show_source_summary.html.erb?ds=sidebyside 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 592e802fa1..398742e740 100644 --- a/apps/workbench/app/views/collections/_show_source_summary.html.erb +++ b/apps/workbench/app/views/collections/_show_source_summary.html.erb @@ -1,10 +1,25 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +
Content size:
+ <%= pluralize(@object.manifest.files_count, "file") %> totalling
+ <%= raw(human_readable_bytes_html(@object.manifest.files_size)) %>
No source information available.
<% 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) %>
@@ -21,7 +36,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 %>