<%# Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: AGPL-3.0 %> <%# Work unit status %>
<% 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 %>
<%# Display runtime error information %> <% if wu.runtime_status.andand[:error] %>
<% if wu.runtime_status[:errorDetail] %>
<%= sanitize(wu.runtime_status[:errorDetail]) %>
<% else %> No detailed information available. <% end %>
<% end %> <%# Display runtime warning message %> <% if wu.runtime_status.andand[:warning] %>
<% if wu.runtime_status[:warningDetail] %>
<%= sanitize(wu.runtime_status[:warningDetail]) %>
<% else %> No detailed information available. <% 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 %>