1 <%# Work unit status %>
7 This <%= wu.title %> is paused. Children that were running
8 were cancelled and no new processes will be submitted.
12 <%= raw(wu.show_runtime) %>
14 <%# Need additional handling for main object display %>
15 <% if @object.uuid == wu.uuid %>
16 <div class="col-md-3">
17 <% if wu.is_running? and wu.child_summary_str %>
18 <%= wu.child_summary_str %>
21 <div class="col-md-3">
22 <%= render partial: 'work_units/progress', locals: {wu: wu} %>
24 <div class="col-md-2">
25 <% if wu.can_cancel? and @object.editable? %>
26 <% confirm = if wu.confirm_cancellation then {confirm: wu.confirm_cancellation} else {} end %>
27 <%= form_tag "#{wu.uri}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %>
28 <%= hidden_field_tag :return_to, url_for(@object) %>
29 <%= button_tag "Cancel", {class: 'btn btn-xs btn-warning', id: "cancel-obj-button", data: confirm} %>
37 <%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>
40 <%# Work unit children %>
41 <% if wu.has_unreadable_children %>
42 <%= render(partial: "pipeline_instances/show_components_json",
43 locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %>
45 <% wu.children.each do |c| %>
46 <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %>