X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3d919829c017376eeccd27db9908b7f5a6e32aa..c6763b5de6a0dc98493bf288472134db0ac22ffa:/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..119415b9a6 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,40 @@ <% 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 %> +

+ <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => 'Unnamed pipeline', 'data-mode' => 'inline' } %> +

+ <% if template %> +

+ From template: + <%= link_to_if_arvados_object template, friendly_name: true %> +

+ <% end %> <% end %> -
+<% if @object.active != nil %> - - - - + + + + + @@ -37,23 +44,21 @@ table.pipeline-components-table div.progress { <% render_pipeline_jobs.each do |pj| %> @@ -61,12 +66,39 @@ table.pipeline-components-table div.progress { <% end %> - +
component + + script, version progress <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> - script, version output
+ <% 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] %> +
+ <%= pj[:progress_bar] %> + + <%= render(partial: 'job_status_label', + locals: { :j => pj[:job] }) %> <%= link_to_if_arvados_object pj[:output] %>
<% if @object.active %> <% content_for :js do %> -setInterval(function(){$('a.refresh').click()}, 30000); +setInterval(function(){$('a.refresh').click()}, 15000); <% end %> + +<% content_for :tab_line_buttons do %> + <%= form_tag @object, :method => :put do |f| %> + + <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => false %> + + <%= button_tag "Stop pipeline", {class: 'btn btn-primary pull-right', id: "run-pipeline-button"} %> + <% end %> +<% end %> + +<% end %> + +<% else %> + +

Please set the desired input parameters for the components of this pipeline. Parameters highlighted in red are required.

+ + <% content_for :tab_line_buttons do %> + <%= 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', id: "run-pipeline-button"} %> + <% end %> + <% end %> + + <%= render partial: 'pipeline_templates/show_components_template', locals: {:template => template, :obj => @object} %> + <% end %>