1 <% if @object.state.in? ['Complete', 'Failed', 'Cancelled', 'Paused'] %>
3 <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'script' => "use_latest", "components" => "use_latest", "pipeline_instance[state]" => "RunningOnServer"),
4 class: 'btn btn-primary',
5 title: 'Re-run with latest options',
6 #data: {toggle: :tooltip, placement: :top}, title: 'Re-run',
9 <i class="fa fa-fw fa-play"></i> Re-run with latest
12 <%= link_to raw('<i class="fa fa-fw fa-cogs"></i> Re-run options...'),
14 {class: 'btn btn-primary', 'data-toggle' => "modal",
15 'data-target' => '#clone-and-edit-modal-window',
16 title: 'Re-run with options'} %>
19 <% if @object.state.in? ['New', 'Ready'] %>
20 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
21 class: 'btn btn-primary run-pipeline-button',
22 title: 'Run this pipeline',
25 <i class="fa fa-fw fa-play"></i> Run
28 <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
29 <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
30 class: 'btn btn-primary run-pipeline-button',
31 title: 'Pause this pipeline',
34 <i class="fa fa-fw fa-pause"></i> Pause
36 <% elsif @object.state == 'Paused' %>
37 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
38 class: 'btn btn-primary run-pipeline-button',
39 title: 'Resume this pipeline',
42 <i class="fa fa-fw fa-play"></i> Resume