1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <%# Work unit status %>
11 This <%= wu.title %> is paused. Children that were running
12 were cancelled and no new processes will be submitted.
16 <%= raw(wu.show_runtime) %>
18 <%# Need additional handling for main object display %>
19 <% if @object.uuid == wu.uuid %>
20 <div class="col-md-3">
21 <% if wu.is_running? and wu.child_summary_str %>
22 <%= wu.child_summary_str %>
25 <div class="col-md-3">
26 <%= render partial: 'work_units/progress', locals: {wu: wu} %>
28 <div class="col-md-2">
29 <% if wu.can_cancel? and @object.editable? %>
30 <% confirm = if wu.confirm_cancellation then {confirm: wu.confirm_cancellation} else {} end %>
31 <%= form_tag "#{wu.uri}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %>
32 <%= hidden_field_tag :return_to, url_for(@object) %>
33 <%= button_tag "Cancel", {class: 'btn btn-xs btn-warning', id: "cancel-obj-button", data: confirm} %>
41 <%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>
44 <%# Work unit children %>
45 <% if wu.has_unreadable_children %>
46 <%= render(partial: "pipeline_instances/show_components_json",
47 locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %>
49 <% wu.children.each do |c| %>
50 <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %>