fix up editable stuff
[arvados.git] / apps / workbench / app / views / groups / index.html.erb
1 <table class="table table-hover">
2   <thead>
3     <tr class="contain-align-left">
4       <th>
5         id
6       </th><th>
7         name
8       </th><th>
9         owner
10       </th><th>
11         incoming permissions
12       </th><th>
13         outgoing permissions
14       </th><th>
15         owned
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 %>
26       </td><td>
27         <%= g.name %>
28       </td><td>
29         <%= g.owner %>
30       </td><td>
31         <%= @links_to.select { |x| x.head_uuid == g.uuid }.collect(&:tail_uuid).uniq.count %>
32       </td><td>
33         <%= @links_from.select { |x| x.tail_uuid == g.uuid }.collect(&:head_uuid).uniq.count %>
34       </td><td>
35         <%= @owned_users.select { |x| x.owner == g.uuid }.count %> users<br />
36       </td>
37     </tr>
38
39     <% end %>
40
41   </tbody>
42 </table>