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