No <%= current_obj.title %> has been submitted yet.
<% else %>
<table>
- <% [:uuid, :modified_by_user_uuid, :created_at, :started_at, :finished_at, :output, :priority].each do |k| %>
+ <% keys = [:uuid, :modified_by_user_uuid, :created_at, :started_at, :finished_at, :priority] %>
+ <% keys << :outputs if @object.uuid == current_obj.uuid %>
+ <% keys.each do |k| %>
<% val = current_obj.send(k) if current_obj.respond_to?(k) %>
<% if val %>
<tr>
<%= link_to_arvados_object_if_readable(val, val, friendly_name: true) %>
<% elsif k.to_s.end_with? '_at' %>
<%= render_localized_date(val) %>
- <% elsif k == :output %>
- <%= link_to_arvados_object_if_readable(val, 'Output data not available', friendly_name: true) %>
+ <% elsif k == :outputs and val.any? %>
+ <% if val.size == 1 %>
+ <%= link_to_arvados_object_if_readable(val[0], 'Output data not available', friendly_name: true) %>
+ <% else %>
+ <%= render partial: 'work_unit/show_outputs', locals: {id: current_obj.uuid, outputs: val, align:""} %>
+ <% end %>
<% else %>
<%= val %>
<% end %>