X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4c8ec1b2166a81b05b2b6cf5a6fae5b839876802..917330c81bb370225ccd0e051dbdca3d1870710e:/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 905470ce3c..e573bf52a2 100644 --- a/apps/workbench/app/views/pipeline_instances/show.html.erb +++ b/apps/workbench/app/views/pipeline_instances/show.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %> <%= content_for :content_top do %>
@@ -16,38 +20,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 }%> + +