3114: Merge branch 'master' into 3114-copy-to-project
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_recent.html.erb
1 <%= render partial: "paging", locals: {results: @objects, object: @object} %>
2
3 <%= form_tag do |f| %>
4
5 <table class="table table-condensed table-fixedlayout">
6   <colgroup>
7     <col width="5%" />
8     <col width="15%" />
9     <col width="25%" />
10     <col width="20%" />
11     <col width="15%" />
12     <col width="15%" />
13     <col width="5%" />
14   </colgroup>
15   <thead>
16     <tr class="contain-align-left">
17       <th>
18       </th><th>
19         Status
20       </th><th>
21         Instance
22       </th><th>
23         Template
24       </th><th>
25         Owner
26       </th><th>
27         Created at
28       </th><th>
29       </th>
30     </tr>
31   </thead>
32   <tbody>
33
34     <% @objects.sort_by { |ob| ob.created_at }.reverse.each do |ob| %>
35
36     <tr data-object-uuid="<%= ob.uuid %>">
37       <td>
38         <%= check_box_tag 'uuids[]', ob.uuid, false, :class => 'persistent-selection' %>
39       </td><td>
40         <%= render partial: 'pipeline_status_label', locals: {:p => ob} %>
41       </td><td colspan="1">
42         <%= link_to_if_arvados_object ob, friendly_name: true %>
43       </td><td>
44         <%= link_to_if_arvados_object ob.pipeline_template_uuid, friendly_name: true %>
45       </td><td>
46         <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %>
47       </td><td>
48         <%= ob.created_at.to_s %>
49       </td><td>
50         <%= render partial: 'delete_object_button', locals: {object:ob} %>
51       </td>
52     </tr>
53     <tr data-object-uuid="<%= ob.uuid %>">
54       <td style="border-top: 0;" colspan="2">
55       </td>
56       <td style="border-top: 0; opacity: 0.5;" colspan="6">
57         <% ob.components.each do |cname, c| %>
58           <% if c.is_a?(Hash) and c[:job] %>
59             <%= render partial: "job_status_label", locals: {:j => c[:job], :title => cname.to_s } %>
60           <% else %>
61             <span class="label label-default"><%= cname.to_s %></span>
62           <% end %>
63         <% end %>
64       </td>
65     </tr>
66     <% end %>
67
68   </tbody>
69 </table>
70
71 <% end %>
72
73 <%= render partial: "paging", locals: {results: @objects, object: @object} %>