projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15803: Adjust workbench1 user panel to promote setup/unsetup buttons
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
groups
/
_show_recent.html.erb
diff --git
a/apps/workbench/app/views/groups/_show_recent.html.erb
b/apps/workbench/app/views/groups/_show_recent.html.erb
index 1e81518169207ed3255295edafc7a4c877ea4d78..3acbfef3a4d6e85fe3185ada5114d43a0e3abb5d 100644
(file)
--- a/
apps/workbench/app/views/groups/_show_recent.html.erb
+++ b/
apps/workbench/app/views/groups/_show_recent.html.erb
@@
-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>
<table class="table table-hover">
<thead>
<tr class="contain-align-left">
<th>
- id
+ Group
</th><th>
</th><th>
- name
+ Owner
</th><th>
</th><th>
- owner
+ Incoming permissions
</th><th>
</th><th>
-
incom
ing permissions
+
Outgo
ing permissions
</th><th>
</th><th>
- outgoing permissions
- </th><th>
- owned
+ <!-- column for delete buttons -->
</th>
</tr>
</thead>
</th>
</tr>
</thead>
@@
-22,17
+26,15
@@
<tr>
<td>
<tr>
<td>
- <%= link_to_if_arvados_object g %>
- </td><td>
- <%= g.name %>
+ <%= link_to_if_arvados_object g, friendly_name: true %>
</td><td>
</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>
</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>
</td>
</tr>
@@
-40,3
+42,5
@@
</tbody>
</table>
</tbody>
</table>
+
+<%= render partial: "paging", locals: {results: @groups, object: @object} %>