[ARVADOS] created: 5a9a12b5a58b6191c0607328aa597af15015c9a6

git at public.curoverse.com git at public.curoverse.com
Wed Oct 1 13:52:54 EDT 2014


        at  5a9a12b5a58b6191c0607328aa597af15015c9a6 (commit)


commit 5a9a12b5a58b6191c0607328aa597af15015c9a6
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Oct 1 13:52:45 2014 -0400

    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 f6c9e85..3b2cde8 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? %>
+  <p>This pipeline template is empty.</p>
+<% end %>
+
+<p>Edit this pipeline template at the command line with:</p>
+<pre>$ <code>arv edit <%= @object.uuid %> name components</code></pre>
+
+<% if @object.components.any? %>
+
 <table class="table pipeline-components-table" style="margin-top: -.1em">
   <colgroup>
     <col style="width: 20%" />
@@ -46,3 +55,4 @@
     <% end %>
   </tbody>
 </table>
+<% end %>
diff --git a/apps/workbench/app/views/projects/show.html.erb b/apps/workbench/app/views/projects/show.html.erb
index cff8bbd..b4d5e94 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 %>
       <i class="fa fa-fw fa-gear"></i> 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 %>
+      <i class="fa fa-fw fa-plus"></i> 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 %>
       <i class="fa fa-fw fa-plus"></i>
       Add a subproject

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list