1 <% content_for :css do %>
2 .pipeline_color_legend {
6 table.pipeline-components-table {
12 table.pipeline-components-table thead th {
15 table.pipeline-components-table div.progress {
19 table.pipeline-components-table td {
21 text-overflow: ellipsis;
30 <% if @object.active != nil %>
31 <table class="table pipeline-components-table">
33 <col style="width: 15%" />
34 <col style="width: 20%" />
35 <col style="width: 20%" />
36 <col style="width: 45%" />
46 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
53 <% render_pipeline_jobs.each do |pj| %>
56 <% label = if pj[:job].andand[:uuid]
59 elsif pj[:job][:success]
67 <% if pj[:job].andand[:uuid] %>
68 <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %>
70 <span class="label <%= label %>"><%= pj[:name] %></span>
75 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
77 <%= pj[:progress_bar] %>
78 <% if pj[:job].andand[:cancelled_at] %>
79 <span class="pull-right label label-warning">cancelled</span>
80 <% elsif pj[:failed] %>
81 <span class="pull-right label label-warning">failed</span>
82 <% elsif pj[:result] == 'queued' %>
83 <span class="pull-right label">queued</span>
86 <%= link_to_if_arvados_object pj[:output] %>
92 <tr><td colspan="4"></td></tr>
96 <% if @object.active %>
97 <% content_for :js do %>
98 setInterval(function(){$('a.refresh').click()}, 30000);
104 <%= form_tag @object, :method => :put do |f| %>
106 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %>
107 <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %>
110 <table class="table pipeline-components-table" style="margin-top: -.1em">
112 <col style="width: 15%" />
113 <col style="width: 20%" />
114 <col style="width: 20%" />
115 <col style="width: 45%" />
132 <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %>
133 <% template.components.each do |k, template_value| %>
136 <td><span class="label label-default"><%= k %></span></td>
138 <td><%= render_editable_subattribute @object, :components, [k, :script], template_value[:script] %></td>
140 <td>script version</td>
143 <%= render_editable_subattribute @object, :components, [k, :script_version], template_value[:script_version] %>
147 <% if template_value[:script_parameters].length > 0 %>
148 <% template_value[:script_parameters].each do |p, tv| %>
150 <td style="border-top: none"></td>
151 <td style="border-top: none"></td>
153 <td class="property-edit-row"><%= p %></td>
154 <td class="property-edit-row"><%= render_editable_subattribute @object, :components, [k, :script_parameters, p.to_sym], tv %></td>