X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3d919829c017376eeccd27db9908b7f5a6e32aa..49a6ced3c7a540a7da7155ab1c3120a5227c620c:/apps/workbench/app/views/pipeline_instances/_show_components.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_components.html.erb b/apps/workbench/app/views/pipeline_instances/_show_components.html.erb index c6f7f9a898..61a4ca177d 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_components.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_components.html.erb @@ -1,33 +1,43 @@ <% content_for :css do %> - .pipeline_color_legend { - padding-left: 1em; - padding-right: 1em; - } -table.pipeline-components-table thead th { - text-align: bottom; -} -table.pipeline-components-table div.progress { - margin-bottom: 0; -} + +<% end %> + +<% template = PipelineTemplate.find(@object.pipeline_template_uuid) rescue nil %> + +<%= content_for :content_top do %> +
component + | + script, version | progress - <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> + <%# format:'js' here helps browsers avoid using the cached js + content in html context (e.g., duplicate tab -> see + javascript) %> + <%= link_to '(refresh)', {format:'js'}, class: 'refresh hide', remote: true, method: 'get' %> | - script, version | output | @@ -37,36 +47,65 @@ table.pipeline-components-table div.progress { <% render_pipeline_jobs.each do |pj| %>|
---|---|---|---|---|---|
+ <% job_status = render(partial: 'job_status_label', + locals: { :j => pj[:job], :title => pj[:name] }) %> <% if pj[:job].andand[:uuid] %> - <%= link_to pj[:name], job_url(id: pj[:job][:uuid]) %> + <%= link_to(job_status, job_url(id: pj[:job][:uuid])) %> <% else %> - <%= pj[:name] %> - <% end %> - | - <%= pj[:progress_bar] %> - <% if pj[:job].andand[:cancelled_at] %> - cancelled - <% elsif pj[:failed] %> - failed - <% elsif pj[:result] == 'queued' %> - queued + <%= job_status %> <% end %> |
<%= pj[:script] %>
<%= pj[:script_version] %> | - <%= link_to_if_arvados_object pj[:output] %> + <%= pj[:progress_bar] %> + | + <%= render(partial: 'job_status_label', + locals: { :j => pj[:job] }) %> + | + <%= link_to_if_arvados_object pj[:output], {:thumbnail => true} %> |
Please set the desired input parameters for the components of this pipeline. Parameters highlighted in red are required.
+ <% end %> + + <% content_for :tab_line_buttons do %> + <%= form_tag @object, :method => :put do |f| %> + + <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :state, :value => 'RunningOnServer' %> + + <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right', id: "run-pipeline-button"} %> + <% end %> + <% end %> + + <% if @object.state.in? ['New', 'Ready'] %> + <%= render partial: 'show_components_editable', locals: {editable: true} %> + <% else %> + <%= render partial: 'show_components_editable', locals: {editable: false} %> + <% end %> <% end %>