X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e502060ffe4f68d33e2cca8f8d7544ce40d53eb7..42c20b25e1325124b88e3b9b285544dc41122b56:/apps/workbench/app/views/work_units/_show_component.html.erb diff --git a/apps/workbench/app/views/work_units/_show_component.html.erb b/apps/workbench/app/views/work_units/_show_component.html.erb index e8c4f1375f..4cce090a22 100644 --- a/apps/workbench/app/views/work_units/_show_component.html.erb +++ b/apps/workbench/app/views/work_units/_show_component.html.erb @@ -1,11 +1,15 @@ +<%# 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 are already running - will continue to run, but no new processes will be submitted. + This <%= wu.title %> is paused. Children that were running + were cancelled and no new processes will be submitted.

<% end %> @@ -23,15 +27,64 @@
<% 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"} %> + <%= 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] %> +
<%= h(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] %> +
<%= h(wu.runtime_status[:warningDetail]) %>
+ <% else %> + No detailed information available. + <% end %> +
+
+
+
+<% end %> +

<%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>