3490: Add "Create a pipeline template" button to projects page and provide "arv
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_components_editable.html.erb
index f6c9e85883487c611de38276ca8ee5dd579ca1d9..3b2cde8e84efccbe36de2e7764aa92c43dc0c39a 100644 (file)
@@ -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 %>