<% content_for :css do %> .pipeline_color_legend { padding-left: 1em; padding-right: 1em; } table.pipeline-components-table { width: 100%; table-layout: fixed; overflow: hidden; } table.pipeline-components-table thead th { text-align: bottom; } table.pipeline-components-table div.progress { margin-bottom: 0; } table.pipeline-components-table td { overflow: hidden; text-overflow: ellipsis; } td.required { background: #ffdddd; } <% end %> <% if @object.active != nil %> <% render_pipeline_jobs.each do |pj| %> <% end %>
component script, version progress <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> output
<% label = if pj[:job].andand[:uuid] if pj[:job][:running] 'label-info' elsif pj[:job][:success] 'label-success' else 'label-danger' end else 'label-default' end %> <% if pj[:job].andand[:uuid] %> <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %> <% else %> <%= pj[:name] %> <% end %> <%= pj[:script] %>
<%= pj[:script_version] %>
<%= pj[:progress_bar] %> <% if pj[:job].andand[:cancelled_at] %> cancelled <% elsif pj[:failed] %> failed <% elsif pj[:result] == 'queued' %> queued <% end %> <%= link_to_if_arvados_object pj[:output] %>
<% if @object.active %> <% content_for :js do %> setInterval(function(){$('a.refresh').click()}, 30000); <% end %> <% end %> <% else %> <%= form_tag @object, :method => :put do |f| %> <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %> <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %> <% end %> <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %> <% template.components.each do |k, template_value| %> <% if template_value[:script_parameters].length > 0 %> <% template_value[:script_parameters].each do |p, tv| %> <% end %> <% end %> <% end %>
component script parameter value
<%= k %> <%= render_editable_subattribute @object, :components, [k, :script], template_value[:script] %> script version <%= render_editable_subattribute @object, :components, [k, :script_version], template_value[:script_version] %>
<%= p %> <%= render_editable_subattribute @object, :components, [k, :script_parameters, p.to_sym], tv %>
<% end %>