1 <% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %>
2 <%= content_for :content_top do %>
4 <%= render_editable_attribute @object, 'name', nil %>
7 <blockquote><span class="deemphasize">From template:</span><br />
8 <%= link_to_if_arvados_object template, friendly_name: true %><br />
9 <%= template.description %>
14 <% content_for :tab_line_buttons do %>
15 <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'),
16 class: 'btn btn-primary',
17 #data: {toggle: :tooltip, placement: :top}, title: 'copy and modify',
20 Clone and edit <i class="fa fa-fw fa-copy"></i>
23 <% if @object.state.in? ['New', 'Ready'] %>
24 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
25 class: 'btn btn-primary run-pipeline-button',
28 Run <i class="fa fa-fw fa-play"></i>
31 <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
32 <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
33 class: 'btn btn-primary run-pipeline-button',
36 Stop <i class="fa fa-fw fa-stop"></i>
38 <% elsif @object.state == 'Paused' %>
39 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
40 class: 'btn btn-primary run-pipeline-button',
43 Resume <i class="fa fa-fw fa-play"></i>
49 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>