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 <% content_for :js do %>
27 function select_Collection_source() {
29 var lst = get_selection_list();
30 for (var i = 0; i < lst.length; i++) {
31 if (lst[i].type == 'Collection') {
32 ret.push({text: lst[i].name, value: lst[i].uuid})
39 <% if @object.active != nil %>
40 <table class="table pipeline-components-table">
42 <col style="width: 15%" />
43 <col style="width: 20%" />
44 <col style="width: 20%" />
45 <col style="width: 45%" />
55 <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
62 <% render_pipeline_jobs.each do |pj| %>
65 <% if pj[:job].andand[:uuid] %>
66 <%= link_to pj[:name], job_url(id: pj[:job][:uuid]) %>
72 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
74 <%= pj[:progress_bar] %>
75 <% if pj[:job].andand[:cancelled_at] %>
76 <span class="pull-right label label-warning">cancelled</span>
77 <% elsif pj[:failed] %>
78 <span class="pull-right label label-warning">failed</span>
79 <% elsif pj[:result] == 'queued' %>
80 <span class="pull-right label">queued</span>
83 <%= link_to_if_arvados_object pj[:output] %>
89 <tr><td colspan="4"></td></tr>
93 <% if @object.active %>
94 <% content_for :js do %>
95 setInterval(function(){$('a.refresh').click()}, 30000);
101 <%= form_tag @object, :method => :put do |f| %>
103 <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %>
104 <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %>
107 <table class="table pipeline-components-table" style="margin-top: -.1em">
109 <col style="width: 15%" />
110 <col style="width: 20%" />
111 <col style="width: 20%" />
112 <col style="width: 45%" />
129 <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %>
130 <% template.components.each do |k, v| %>
132 <% sp = v[:script_parameters].collect do |k, v| [k, v] end %>
137 <td><%= v[:script] %>
138 <br /><span class="deemphasize"> <%= v[:script_version] %></span>
146 <%= render_editable_subattribute @object, :components, [k, :script_parameters, sp[0][0].to_sym], sp[0][1] %>
150 <% if sp.length > 1 %>
152 <td style="border-top: none"></td>
153 <td style="border-top: none"></td>
155 <% sp[1..-1].each do |p| %>