projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14812: Remove commented debug line
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
pipeline_instances
/
_show_tab_buttons.html.erb
diff --git
a/apps/workbench/app/views/pipeline_instances/_show_tab_buttons.html.erb
b/apps/workbench/app/views/pipeline_instances/_show_tab_buttons.html.erb
index 4ed27346b4e68b75106482adddd1104073fc5003..ae9e3c791cd537da9dc4a62ada51ad768f855115 100644
(file)
--- a/
apps/workbench/app/views/pipeline_instances/_show_tab_buttons.html.erb
+++ b/
apps/workbench/app/views/pipeline_instances/_show_tab_buttons.html.erb
@@
-1,3
+1,7
@@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% if current_user.andand.is_active %>
<% if @object.state.in? ['Complete', 'Failed', 'Cancelled', 'Paused'] %>
<% if current_user.andand.is_active %>
<% if @object.state.in? ['Complete', 'Failed', 'Cancelled', 'Paused'] %>
@@
-27,10
+31,11
@@
<% end %>
<% else %>
<% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
<% end %>
<% else %>
<% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
- <%= link_to(
url_for('pipeline_instance[state]' => 'Paused')
,
+ <%= link_to(
cancel_pipeline_instance_path
,
class: 'btn btn-primary run-pipeline-button',
title: 'Pause this pipeline',
class: 'btn btn-primary run-pipeline-button',
title: 'Pause this pipeline',
- method: :patch
+ data: {confirm: 'All unfinished child jobs will be canceled, even if they are being used in another job or pipeline. Are you sure you want to pause this pipeline?'},
+ method: :post
) do %>
<i class="fa fa-fw fa-pause"></i> Pause
<% end %>
) do %>
<i class="fa fa-fw fa-pause"></i> Pause
<% end %>