<% @groups.sort_by { |g| g[:created_at] }.reverse.each do |g| %> <% end %>
id name owner incoming permissions outgoing permissions owned
<%= link_to_if_arvados_object g %> <%= g.name %> <%= g.owner_uuid %> <%= @links_to.select { |x| x.head_uuid == g.uuid }.collect(&:tail_uuid).uniq.count %> <%= @links_from.select { |x| x.tail_uuid == g.uuid }.collect(&:head_uuid).uniq.count %> <%= @owned_users.select { |x| x.owner_uuid == g.uuid }.count %> users