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;
26 <% if @object.active != nil %>
27 <table class="table pipeline-components-table">
29 <col style="width: 15%" />
30 <col style="width: 20%" />
31 <col style="width: 20%" />
32 <col style="width: 45%" />
42 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
49 <% render_pipeline_jobs.each do |pj| %>
52 <% label = if pj[:job].andand[:uuid]
55 elsif pj[:job][:success]
63 <% if pj[:job].andand[:uuid] %>
64 <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %>
66 <span class="label <%= label %>"><%= pj[:name] %></span>
71 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
73 <%= pj[:progress_bar] %>
74 <% if pj[:job].andand[:cancelled_at] %>
75 <span class="pull-right label label-warning">cancelled</span>
76 <% elsif pj[:failed] %>
77 <span class="pull-right label label-warning">failed</span>
78 <% elsif pj[:result] == 'queued' %>
79 <span class="pull-right label">queued</span>
82 <%= link_to_if_arvados_object pj[:output] %>
88 <tr><td colspan="4"></td></tr>
92 <% if @object.active %>
93 <% content_for :js do %>
94 setInterval(function(){$('a.refresh').click()}, 30000);
100 <%= form_tag @object, :method => :put do |f| %>
102 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %>
103 <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %>
106 <table class="table pipeline-components-table" style="margin-top: -.1em">
108 <col style="width: 15%" />
109 <col style="width: 20%" />
110 <col style="width: 20%" />
111 <col style="width: 45%" />
128 <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %>
129 <% template.components.each do |k, v| %>
131 <% sp = v[:script_parameters].collect do |x, y| [x, y] end %>
134 <td><span class="label label-default"><%= k %></span></td>
136 <td><%= v[:script] %></td>
138 <td>script_version</td>
141 <%= render_editable_subattribute @object, :components, [k, :script_version], v[:script_version] %>
145 <% if sp.length > 0 %>
147 <td style="border-top: none"></td>
148 <td style="border-top: none"></td>
152 <td><%= render_editable_subattribute @object, :components, [k, :script_parameters, p[0].to_sym], p[1] %></td>