X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/96d9f313205dcc038a50c25a3ffdacd6516f62bf..6ad31a32b13094ce162a2175956232403b13693f:/apps/workbench/app/views/pipeline_instances/show.html.erb?ds=sidebyside
diff --git a/apps/workbench/app/views/pipeline_instances/show.html.erb b/apps/workbench/app/views/pipeline_instances/show.html.erb
index 36d905ee88..e23e49c05b 100644
--- a/apps/workbench/app/views/pipeline_instances/show.html.erb
+++ b/apps/workbench/app/views/pipeline_instances/show.html.erb
@@ -6,7 +6,7 @@
<% if template %>
- This pipeline has been created from the template <%= link_to_if_arvados_object template, friendly_name: true %>
+ This pipeline was created from the template <%= link_to_if_arvados_object template, friendly_name: true %>
<% if template.modified_at && (template.modified_at > @object.created_at) %>
Note: This template has been modified since this instance was created.
<% end %>
@@ -16,38 +16,58 @@
<% end %>
<% content_for :tab_line_buttons do %>
- <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'),
- class: 'btn btn-primary',
- #data: {toggle: :tooltip, placement: :top}, title: 'copy and modify',
- method: :post,
- ) do %>
- Clone and edit
- <% end %>
-
- <% if @object.state.in? ['New', 'Ready'] %>
- <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
- class: 'btn btn-primary run-pipeline-button',
- method: :patch
- ) do %>
- Run
- <% end %>
- <% else %>
- <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
- <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
- class: 'btn btn-primary run-pipeline-button',
- method: :patch
- ) do %>
- Stop
- <% end %>
- <% elsif @object.state == 'Paused' %>
- <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
- class: 'btn btn-primary run-pipeline-button',
- method: :patch
- ) do %>
- Resume
- <% end %>
- <% end %>
- <% end %>
+
+
"
+ data-object-uuid="<%= @object.uuid %>"
+ >
+ <%= render partial: 'show_tab_buttons', locals: {object: @object}%>
+
+
<% end %>
<%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>
+
+
+
+
+
+ <%= form_tag copy_pipeline_instance_path do |f| %>
+
+
+
+
+ <%= radio_button_tag(:script, "use_latest", true) %>
+ <%= label_tag(:script_use_latest, "Use latest script versions") %>
+
+ <%= radio_button_tag(:script, "use_same") %>
+ <%= label_tag(:script_use_same, "Use same script versions as this run") %>
+
+ <% if template %>
+
+ <%= radio_button_tag(:components, "use_latest", true) %>
+ <%= label_tag(:components_use_latest, "Update components against template") %>
+
+ <%= radio_button_tag(:components, "use_same") %>
+ <%= label_tag(:components_use_same, "Use same components as this run") %>
+ <% end %>
+
+
+
+
+
+ <% end %>
+
+