<% if wu.is_paused? %>
This <%= wu.title %> is paused. Children that were running
were cancelled and no new processes will be submitted.
<% end %>
<%= raw(wu.show_runtime) %>
<%# Need additional handling for main object display %>
<% if @object.uuid == wu.uuid %>
<% if wu.is_running? and wu.child_summary_str %>
<%= wu.child_summary_str %>
<% end %>
<%= render partial: 'work_units/progress', locals: {wu: wu} %>
<% if wu.can_cancel? and @object.editable? %>
<% confirm = if wu.confirm_cancellation then {confirm: wu.confirm_cancellation} else {} end %>
<%= form_tag "#{wu.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-warning', id: "cancel-obj-button", data: confirm} %>
<% end %>
<% end %>
<% end %>
<%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>
<%# Work unit children %>
<% if wu.has_unreadable_children %>
<%= render(partial: "pipeline_instances/show_components_json",
locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %>
<% else %>
<% wu.children.each do |c| %>
<%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %>
<% end %>
<% end %>