<%= render partial: 'work_units/progress', locals: {wu: current_obj} %>
<% if not current_obj %>
<% else %>
<%= render partial: 'work_units/show_log_link', locals: {wu: current_obj} %>
<% walltime = current_obj.walltime %> <% cputime = current_obj.cputime %>
<% if walltime and cputime %> <%= render_runtime(walltime, false) %> <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/walltime).round(1) %>⨯)<% end %> <% end %>
<% queuetime = current_obj.queuedtime %> <% if queuetime %>
Queued for <%= render_runtime(queuetime, false) %>.
<% elsif current_obj.is_running? %>
<%= current_obj.child_summary_str %>
<% elsif current_obj.is_finished? %>
<% outputs = current_obj.outputs %> <% if outputs.any? %> <% if outputs.size == 1 %> <%= link_to_arvados_object_if_readable(outputs[0], 'Output data not available', link_text: "Output of #{current_obj.label}") %> <% else %> <%= render partial: 'work_units/show_outputs', locals: {id: current_obj.uuid, outputs: outputs, align:"pull-right"} %> <% end %> <% else %> No output. <% end %>
<% end %>
<% if current_obj.can_cancel? and @object.editable? %> <%= form_tag "#{current_obj.uri}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %> <%= hidden_field_tag :return_to, url_for(@object) %> <%= button_tag "Cancel", {class: 'btn btn-xs btn-danger', id: "cancel-child-button"} %> <% end %> <% end %>
<% end %>
<%= render partial: 'work_units/show_component', locals: {wu: current_obj} %>