1 <% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %>
2 <%= content_for :content_top do %>
5 <%= render partial: 'name_and_description' %>
8 <div class="alert alert-info col-sm-6">
9 This pipeline was created from the template <%= link_to_if_arvados_object template, friendly_name: true %><br />
10 <% if template.modified_at && (template.modified_at > @object.created_at) %>
11 Note: This template has been modified since this instance was created.
18 <% content_for :tab_line_buttons do %>
19 <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'),
20 class: 'btn btn-primary',
21 #data: {toggle: :tooltip, placement: :top}, title: 'copy and modify',
24 Clone and edit <i class="fa fa-fw fa-copy"></i>
27 <% if @object.state.in? ['New', 'Ready'] %>
28 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
29 class: 'btn btn-primary run-pipeline-button',
32 Run <i class="fa fa-fw fa-play"></i>
35 <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
36 <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
37 class: 'btn btn-primary run-pipeline-button',
40 Stop <i class="fa fa-fw fa-stop"></i>
42 <% elsif @object.state == 'Paused' %>
43 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
44 class: 'btn btn-primary run-pipeline-button',
47 Resume <i class="fa fa-fw fa-play"></i>
53 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>