From: Peter Amstutz Date: Wed, 1 Oct 2014 17:52:45 +0000 (-0400) Subject: 3490: Add "Create a pipeline template" button to projects page and provide "arv X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/5a9a12b5a58b6191c0607328aa597af15015c9a6 3490: Add "Create a pipeline template" button to projects page and provide "arv edit" command line to edit pipeline template. --- diff --git a/apps/workbench/app/views/pipeline_instances/_show_components_editable.html.erb b/apps/workbench/app/views/pipeline_instances/_show_components_editable.html.erb index f6c9e85883..3b2cde8e84 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_components_editable.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_components_editable.html.erb @@ -1,3 +1,12 @@ +<% if @object.components.empty? %> +

This pipeline template is empty.

+<% end %> + +

Edit this pipeline template at the command line with:

+
$ arv edit <%= @object.uuid %> name components
+ +<% if @object.components.any? %> + @@ -46,3 +55,4 @@ <% end %>
+<% end %> diff --git a/apps/workbench/app/views/projects/show.html.erb b/apps/workbench/app/views/projects/show.html.erb index cff8bbd9b0..b4d5e9456d 100644 --- a/apps/workbench/app/views/projects/show.html.erb +++ b/apps/workbench/app/views/projects/show.html.erb @@ -27,6 +27,9 @@ { class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %> Run a pipeline... <% end %> + <%= link_to pipeline_templates_path({'pipeline_template[owner_uuid]' => @object.uuid, 'options' => {'ensure_unique_name' => true}}), method: 'post', class: 'btn btn-sm btn-primary' do %> + Add a pipeline template + <% end %> <%= link_to projects_path({'project[owner_uuid]' => @object.uuid, 'options' => {'ensure_unique_name' => true}}), method: 'post', class: 'btn btn-sm btn-primary' do %> Add a subproject