3342: Fixing outputs
[arvados.git] / apps / workbench / app / views / collections / _show_source_summary.html.erb
index e3f29952ff29fe58c62bf173ab3a982f7ac2c904..c1336b76d3b030c91d0d8a8ff7a471f87b312ca7 100644 (file)
@@ -4,9 +4,12 @@
 
 <% if @output_of.andand.any? %>
   <p><i>This collection was the output of:</i><br />
-    <%= 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) %><br />
+    <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %>
+      <% pipeline.components.each do |cname, c| %>
+        <% if c[:output_uuid] == @object.uuid %>
+          <b><%= cname %></b> component of pipeline <b><%= link_to_if_arvados_object(pipeline, friendly_name: true) %></b> finished at <%= c[:job][:finished_at] %>
+        <% end %>
+      <% end %>
     <% end %>
   </p>
 <% end %>