Merge remote-tracking branch 'origin/master' into 1971-show-image-thumbnails
[arvados.git] / apps / workbench / app / views / groups / _show_recent.html.erb
1 <table class="table table-hover">
2   <thead>
3     <tr class="contain-align-left">
4       <th>
5         Group
6       </th><th>
7         Owner
8       </th><th>
9         Incoming permissions
10       </th><th>
11         Outgoing permissions
12       </th><th>
13         <!-- column for delete buttons -->
14       </th>
15     </tr>
16   </thead>
17   <tbody>
18
19     <% @groups.sort_by { |g| g[:created_at] }.reverse.each do |g| %>
20
21     <tr>
22       <td>
23         <%= link_to_if_arvados_object g, friendly_name: true %>
24       </td><td>
25         <%= link_to_if_arvados_object g.owner_uuid, friendly_name: true %>
26       </td><td>
27         <%= @links_to.select { |x| x.head_uuid == g.uuid }.collect(&:tail_uuid).uniq.count %>
28       </td><td>
29         <%= @links_from.select { |x| x.tail_uuid == g.uuid }.collect(&:head_uuid).uniq.count %>
30       </td><td>
31         <%= render partial: 'delete_object_button', locals: {object:g} %>
32       </td>
33     </tr>
34
35     <% end %>
36
37   </tbody>
38 </table>