X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aadca3ff41a12a7a52a2a072696564b90537b9b3..45f10d80d1b584808a6e375214b5be6bc7d2a730:/apps/workbench/app/views/pipeline_instances/show.html.erb
diff --git a/apps/workbench/app/views/pipeline_instances/show.html.erb b/apps/workbench/app/views/pipeline_instances/show.html.erb
index f43369f7e2..e23e49c05b 100644
--- a/apps/workbench/app/views/pipeline_instances/show.html.erb
+++ b/apps/workbench/app/views/pipeline_instances/show.html.erb
@@ -1,58 +1,30 @@
<% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %>
<%= content_for :content_top do %>
-
- <%= render_editable_attribute @object, 'name', nil %>
-
- <% if template %>
- From template:
- <%= link_to_if_arvados_object template, friendly_name: true %>
- <%= template.description %>
-
- <% end %>
+
+
+ <%= render partial: 'name_and_description' %>
+
+ <% if template %>
+
+ 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 %>
+
+ <% end %>
+
<% end %>
<% content_for :tab_line_buttons do %>
- <% if @object.state.in? ['Complete', 'Failed', 'Cancelled'] %>
-
- <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'script' => "use_latest", "components" => "use_latest", "pipeline_instance[state]" => "RunningOnServer"),
- class: 'btn btn-primary',
- #data: {toggle: :tooltip, placement: :top}, title: 'Re-run',
- method: :post,
- ) do %>
- Re-run with latest
- <% end %>
-
- <%= link_to raw(' Re-run options'),
- "#",
- {class: 'btn btn-primary', 'data-toggle' => "modal",
- 'data-target' => '#clone-and-edit-modal-window'} %>
- <% end %>
+ "
+ data-object-uuid="<%= @object.uuid %>"
+ >
+ <%= render partial: 'show_tab_buttons', locals: {object: @object}%>
+
- <% 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 %>
- Pause
- <% 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 %>
<% end %>
<%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>
@@ -90,9 +62,9 @@