summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-04 05:29:45 -0500
committerPeter Kozak <spag@golwen.net>2013-03-04 05:29:45 -0500
commit716a7dc8e7838fe397b6d9ca2a52f6d8b2ff52a9 (patch)
tree3a730786254bead9a8c3cad37842ee464c656825 /app/views/groups
parent86e4f6f2241fee9597d7c1a7de1ff585634da4c5 (diff)
list permissions and memberships in group index
Diffstat (limited to 'app/views/groups')
-rw-r--r--app/views/groups/_index_core.html.haml10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/groups/_index_core.html.haml b/app/views/groups/_index_core.html.haml
index 3a444bf..e67eb66 100644
--- a/app/views/groups/_index_core.html.haml
+++ b/app/views/groups/_index_core.html.haml
@@ -2,6 +2,8 @@
%tr
%th
%th= t('groups.index.name')
+ %th= t('groups.index.permissions')
+ %th= t('groups.index.memberships')
%th= t('groups.index.comment')
@@ -13,5 +15,11 @@
- else
%i.icon-ban-circle
%td= group.name
+ %td
+ - if group.group_permissions.count > 0 && group.group_permissions.count < 4
+ = group.group_permissions.pluck(:permission).uniq.join(' ')
+ - else
+ = group.group_permissions.count
+ %td= group.group_memberships.count
%td= group.comment
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => group} \ No newline at end of file
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => group}