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