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 <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %>
32 <h2><%= template.name %></h2>
35 <% if @object.active != nil %>
36 <table class="table pipeline-components-table">
38 <col style="width: 15%" />
39 <col style="width: 20%" />
40 <col style="width: 12%" />
41 <col style="width: 8%" />
42 <col style="width: 45%" />
52 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
60 <% render_pipeline_jobs.each do |pj| %>
63 <% label = if pj[:job].andand[:uuid]
64 if pj[:job][:success] == true
66 elsif pj[:job][:success] == false
68 elsif pj[:job][:running] == true
76 <% if pj[:job].andand[:uuid] %>
77 <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %>
79 <span class="label <%= label %>"><%= pj[:name] %></span>
84 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
86 <%= pj[:progress_bar] %>
88 <% if pj[:job].andand[:cancelled_at] %>
89 <span class="label label-warning">cancelled</span>
90 <% elsif pj[:failed] %>
91 <span class="label label-danger">failed</span>
92 <% elsif pj[:result] == 'queued' %>
93 <span class="label">queued</span>
96 <%= link_to_if_arvados_object pj[:output] %>
102 <tr><td colspan="4"></td></tr>
106 <% if @object.active %>
107 <% content_for :js do %>
108 setInterval(function(){$('a.refresh').click()}, 30000);
114 <%= form_tag @object, :method => :put do |f| %>
116 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %>
117 <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right', id: "run-pipeline-button"} %>
120 <table class="table pipeline-components-table" style="margin-top: -.1em">
122 <col style="width: 15%" />
123 <col style="width: 20%" />
124 <col style="width: 20%" />
125 <col style="width: 45%" />
142 <% template.components.each do |k, template_value| %>
145 <td><span class="label label-default"><%= k %></span></td>
147 <td><%= render_editable_subattribute @object, :components, [k, :script], template_value[:script] %></td>
149 <td>script version</td>
152 <%= render_editable_subattribute @object, :components, [k, :script_version], template_value[:script_version] %>
156 <% if template_value[:script_parameters].length > 0 %>
157 <% template_value[:script_parameters].each do |p, tv| %>
159 <td style="border-top: none"></td>
160 <td style="border-top: none"></td>
162 <td class="property-edit-row"><%= p %></td>
163 <td class="property-edit-row"><%= render_editable_subattribute @object, :components, [k, :script_parameters, p.to_sym], tv %></td>