Merge branch 'master' into 2333-crunch-dispatch-token-management
[arvados.git] / services / api / app / views / collections / index.html.erb
1 <table style="width:100%">
2   <tr class="contain-align-left">
3     <th>
4       redundancy
5     </th><th>
6       uuid
7     </th><th>
8       name
9     </th><th>
10       locator
11     </th><th>
12       last updated
13     </th>
14   </tr>
15
16   <% @objects.each do |o| %>
17
18   <tr class="collection-redundancy-status collection-redundancy-status-<%= o.redundancy_status %>" data-showhide-selector="tr#extra-info-<%= o.uuid %>" style="cursor:pointer">
19     <td>
20       <%= o.redundancy_status %> (<%= o.redundancy %>)
21     </td><td>
22       <%= o.uuid %>
23     </td><td>
24       <%= o.name %>
25     </td><td>
26       <%= o.locator %>
27     </td><td>
28       <%= distance_of_time_in_words(o.updated_at, Time.now, true) + ' ago' if o.updated_at %>
29     </td>
30   </tr>
31
32   <% if  %>
33   <tr id="extra-info-<%= o.uuid %>" data-showhide-default>
34     <td colspan="5">
35       <table>
36         <tr>
37           <td>
38             (file list not available)
39           </td>
40         </tr>
41       </table>
42     </td>
43   </tr>
44
45   <% end %>
46   <% end %>
47 </table>