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 #data: {toggle: :tooltip, placement: :top}, title: 'Re-run',
8 <i class="fa fa-fw fa-play"></i> Re-run with latest
11 <%= link_to raw('<i class="fa fa-fw fa-cogs"></i> Re-run options'),
13 {class: 'btn btn-primary', 'data-toggle' => "modal",
14 'data-target' => '#clone-and-edit-modal-window'} %>
17 <% if @object.state.in? ['New', 'Ready'] %>
18 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
19 class: 'btn btn-primary run-pipeline-button',
22 <i class="fa fa-fw fa-play"></i> Run
25 <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %>
26 <%= link_to(url_for('pipeline_instance[state]' => 'Paused'),
27 class: 'btn btn-primary run-pipeline-button',
30 <i class="fa fa-fw fa-pause"></i> Pause
32 <% elsif @object.state == 'Paused' %>
33 <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'),
34 class: 'btn btn-primary run-pipeline-button',
37 <i class="fa fa-fw fa-play"></i> Resume