X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/004e528060e42b45c8207e43892289b14f5aa2e5..45f10d80d1b584808a6e375214b5be6bc7d2a730:/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 9c0f28e08e..4ed27346b4 100644
--- 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,22 +1,26 @@
- <% if @object.state.in? ['Complete', 'Failed', 'Cancelled'] %>
+<% if current_user.andand.is_active %>
+ <% if @object.state.in? ['Complete', 'Failed', 'Cancelled', 'Paused'] %>
<%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'script' => "use_latest", "components" => "use_latest", "pipeline_instance[state]" => "RunningOnServer"),
class: 'btn btn-primary',
+ title: 'Re-run with latest options',
#data: {toggle: :tooltip, placement: :top}, title: 'Re-run',
method: :post,
) do %>
Re-run with latest
<% end %>
- <%= link_to raw(' Re-run options'),
+ <%= link_to raw(' Re-run options...'),
"#",
{class: 'btn btn-primary', 'data-toggle' => "modal",
- 'data-target' => '#clone-and-edit-modal-window'} %>
+ 'data-target' => '#clone-and-edit-modal-window',
+ title: 'Re-run with options'} %>
<% end %>
<% if @object.state.in? ['New', 'Ready'] %>
<%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
class: 'btn btn-primary run-pipeline-button',
+ title: 'Run this pipeline',
method: :patch
) do %>
Run
@@ -25,6 +29,7 @@
<% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
<%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
class: 'btn btn-primary run-pipeline-button',
+ title: 'Pause this pipeline',
method: :patch
) do %>
Pause
@@ -32,9 +37,11 @@
<% elsif @object.state == 'Paused' %>
<%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
class: 'btn btn-primary run-pipeline-button',
+ title: 'Resume this pipeline',
method: :patch
) do %>
Resume
<% end %>
<% end %>
<% end %>
+<% end %>