Merge branch 'master' into 2257-inequality-conditions
[arvados.git] / apps / workbench / app / views / pipeline_templates / _show_recent.html.erb
index c389aa0a481194a41f23823572886ffc9b0ce9c4..342a74331e567f9bc7fd7a7e7f1380b5b87161de 100644 (file)
@@ -1,7 +1,21 @@
+<% content_for :css do %>
+  .playbutton {
+  color: white;
+  background: rgb(91, 192, 222);
+  border: 0px;
+  border-radius: 3px;
+  padding: 0px 3px;  
+  }
+  .playbutton:hover {
+  background: rgb(57, 179, 215);
+  }
+<% end %>
+
 <table class="table table-hover">
   <thead>
     <tr class="contain-align-left">
       <th>
+      </th><th>
        id
       </th><th>
        name
     <% @objects.sort_by { |ob| ob[:created_at] }.reverse.each do |ob| %>
 
     <tr>
+      <td>
+        <%= form_tag '/pipeline_instances' do |f| %>
+          <%= hidden_field :pipeline_instance, :pipeline_template_uuid, :value => ob.uuid %>
+          <%= button_tag nil, {class: 'playbutton', title: "Run #{ob.name}"} do %>
+            <span class="glyphicon glyphicon-play"></span>
+          <% end %>
+        <% end %>
+      </td>
       <td>
         <%= link_to_if_arvados_object ob %>
       </td><td>