Merge branch '2411-check-copyright'
[arvados.git] / apps / workbench / app / views / groups / _show_recent.html.erb
index 1e81518169207ed3255295edafc7a4c877ea4d78..3acbfef3a4d6e85fe3185ada5114d43a0e3abb5d 100644 (file)
@@ -1,18 +1,22 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<%= render partial: "paging", locals: {results: @groups, object: @object} %>
+
 <table class="table table-hover">
   <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 %>
+        <%= link_to_if_arvados_object g, friendly_name: true %>
       </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>
 
@@ -40,3 +42,5 @@
 
   </tbody>
 </table>
+
+<%= render partial: "paging", locals: {results: @groups, object: @object} %>