1 <% content_for :css do %>
5 <% template = PipelineTemplate.find(@object.pipeline_template_uuid) rescue nil %>
7 <%= content_for :content_top do %>
9 <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => 'Unnamed pipeline' } %>
14 <%= link_to_if_arvados_object template, friendly_name: true %>
19 <% if !@object.state.in? ['New', 'Ready', 'Paused'] %>
20 <table class="table pipeline-components-table">
22 <col style="width: 15%" />
23 <col style="width: 20%" />
24 <col style="width: 12%" />
25 <col style="width: 12%" />
26 <col style="width: 45%" />
36 <%= link_to '(refresh)', request.fullpath, class: 'refresh hide', remote: true, method: 'get' %>
44 <% render_pipeline_jobs.each do |pj| %>
47 <% job_status = render(partial: 'job_status_label',
48 locals: { :j => pj[:job], :title => pj[:name] }) %>
49 <% if pj[:job].andand[:uuid] %>
50 <%= link_to(job_status, job_url(id: pj[:job][:uuid])) %>
56 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
58 <%= pj[:progress_bar] %>
60 <%= render(partial: 'job_status_label',
61 locals: { :j => pj[:job] }) %>
63 <%= link_to_if_arvados_object pj[:output], {:thumbnail => true} %>
69 <tr><td colspan="5"></td></tr>
73 <% if @object.state == 'RunningOnServer' || @object.state == 'RunningOnClient' %>
74 <% content_for :js do %>
75 setInterval(function(){$('a.refresh').click()}, 15000);
78 <% content_for :tab_line_buttons do %>
79 <%= form_tag @object, :method => :put do |f| %>
81 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :state, :value => 'Paused' %>
83 <%= button_tag "Stop pipeline", {class: 'btn btn-primary pull-right', id: "run-pipeline-button"} %>
90 <% if @object.state == 'New' %>
91 <p>Please set the desired input parameters for the components of this pipeline. Parameters highlighted in red are required.</p>
94 <% content_for :tab_line_buttons do %>
95 <%= form_tag @object, :method => :put do |f| %>
97 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :state, :value => 'RunningOnServer' %>
99 <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right', id: "run-pipeline-button"} %>
103 <% if @object.state.in? ['New', 'Ready'] %>
104 <%= render partial: 'show_components_editable', locals: {editable: true} %>
106 <%= render partial: 'show_components_editable', locals: {editable: false} %>
110 <%= render partial: 'show_event_log', locals: {object: @object} %>