X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2129d0fd84fa62a5498d9860f3307cd64dc2a704..88bef712f3c9fb6e7b7e5d1eb7b429da598f4eaf:/apps/workbench/app/views/pipeline_instances/show.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/show.html.erb b/apps/workbench/app/views/pipeline_instances/show.html.erb index cf56b9798d..28972a4beb 100644 --- a/apps/workbench/app/views/pipeline_instances/show.html.erb +++ b/apps/workbench/app/views/pipeline_instances/show.html.erb @@ -1,89 +1,55 @@ -<% 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; -} +<% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %> +<%= content_for :content_top do %> +

+ <%= render_editable_attribute @object, 'name', nil %> +

+ <% if template %> +
From template:
+ <%= link_to_if_arvados_object template, friendly_name: true %>
+ <%= template.description %> +
+ <% end %> <% end %> -
- - - - - - - - - - - - - - <% render_pipeline_jobs.each do |pj| %> - - - - <% end %> - - - - -
- component - - progress - <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> - - script, version - - output -
- <% if pj[:job].andand[:uuid] %> - <%= link_to pj[:name], 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 - <% end %> - - <%= pj[:script] %> -
<%= pj[:script_version] %> -
- <%= link_to_if_arvados_object pj[:output] %> -
+<% content_for :tab_line_buttons do %> + <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'), + class: 'btn btn-primary', + #data: {toggle: :tooltip, placement: :top}, title: 'copy and modify', + method: :post, + ) do %> + Clone and edit + <% end %> -<% if @pipelines.count > 1 %> -
- This pipeline - Comparison pipeline - Shared by both pipelines -
+ <% if @object.state.in? ['New', 'Ready'] %> + <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'), + class: 'btn btn-primary run-pipeline-button', + method: :patch + ) do %> + Run + <% end %> + <% else %> + <% if @object.state.in? ['RunningOnClient', 'RunningOnServer'] %> + <%= link_to(url_for('pipeline_instance[state]' => 'Paused'), + class: 'btn btn-primary run-pipeline-button', + method: :patch + ) do %> + Stop + <% end %> + <% elsif @object.state == 'Paused' %> + <%= link_to(url_for('pipeline_instance[state]' => 'RunningOnServer'), + class: 'btn btn-primary run-pipeline-button', + method: :patch + ) do %> + Resume + <% end %> + <% end %> + <% end %> <% end %> - <%= render partial: 'application/svg_div', locals: { - divId: "provenance_graph", - svgId: "provenance_svg", - svg: @prov_svg } %> - -
- -<%= render partial: 'arvados_object' %> - -<% if @object.active %> -<% content_for :js do %> -setInterval(function(){$('a.refresh').click()}, 30000); -<% end %> +<% if @object.state.in? %w(RunningOnServer RunningOnClient) %> + <% content_for :js do %> + setInterval(function(){$('a.refresh').click()}, 15000); + <% end %> <% end %> + +<%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>