Merge branch 'master' into 2257-inequality-conditions
[arvados.git] / apps / workbench / app / views / pipeline_templates / _show_recent.html.erb
1 <% content_for :css do %>
2   .playbutton {
3   color: white;
4   background: rgb(91, 192, 222);
5   border: 0px;
6   border-radius: 3px;
7   padding: 0px 3px;  
8   }
9   .playbutton:hover {
10   background: rgb(57, 179, 215);
11   }
12 <% end %>
13
14 <table class="table table-hover">
15   <thead>
16     <tr class="contain-align-left">
17       <th>
18       </th><th>
19         id
20       </th><th>
21         name
22       </th><th>
23         owner
24       </th><th>
25         components
26       </th>
27     </tr>
28   </thead>
29   <tbody>
30
31     <% @objects.sort_by { |ob| ob[:created_at] }.reverse.each do |ob| %>
32
33     <tr>
34       <td>
35         <%= form_tag '/pipeline_instances' do |f| %>
36           <%= hidden_field :pipeline_instance, :pipeline_template_uuid, :value => ob.uuid %>
37           <%= button_tag nil, {class: 'playbutton', title: "Run #{ob.name}"} do %>
38             <span class="glyphicon glyphicon-play"></span>
39           <% end %>
40         <% end %>
41       </td>
42       <td>
43         <%= link_to_if_arvados_object ob %>
44       </td><td>
45         <%= render_editable_attribute ob, 'name' %>
46       </td><td>
47         <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %>
48       </td><td>
49         <%= ob.components.collect { |k,v| k.to_s }.join(", ") %>
50       </td>
51     </tr>
52
53     <% end %>
54
55   </tbody>
56 </table>