Clean up groups/index and add delete buttons.
[arvados.git] / apps / workbench / app / views / groups / _show_recent.html.erb
index 1e81518169207ed3255295edafc7a4c877ea4d78..117ddb65da08d07e507151a31f2fbb86b3b3b645 100644 (file)
@@ -2,17 +2,15 @@
   <thead>
     <tr class="contain-align-left">
       <th>
-       id
+       Group
       </th><th>
-       name
+       Owner
       </th><th>
-       owner
+       Incoming permissions
       </th><th>
-       incoming permissions
+       Outgoing permissions
       </th><th>
-       outgoing permissions
-      </th><th>
-       owned
+       <!-- column for delete buttons -->
       </th>
     </tr>
   </thead>
 
     <tr>
       <td>
-        <%= link_to_if_arvados_object g %>
-      </td><td>
-        <%= g.name %>
+        <%= g.friendly_link_name %>
       </td><td>
-        <%= g.owner_uuid %>
+        <%= link_to_if_arvados_object g.owner_uuid, friendly_name: true %>
       </td><td>
         <%= @links_to.select { |x| x.head_uuid == g.uuid }.collect(&:tail_uuid).uniq.count %>
       </td><td>
         <%= @links_from.select { |x| x.tail_uuid == g.uuid }.collect(&:head_uuid).uniq.count %>
       </td><td>
-        <%= @owned_users.select { |x| x.owner_uuid == g.uuid }.count %> users<br />
+        <%= render partial: 'delete_object_button', locals: {object:g} %>
       </td>
     </tr>