summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-04 11:55:33 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-04 11:55:33 +0100
commita07b7482bb2f9d2867dafc909da8af90d5ee9143 (patch)
tree360e5a8b3cc1f9c0ccf79575709b0a9787924dd3 /app/views/groups
parentaaffa89ef9aef6ac30e3304d735a8c58f4bdaaef (diff)
parent8042e6c314737feab61209e0b8b26ddba5c7e763 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
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}