summaryrefslogtreecommitdiff
path: root/app/views/groups/_index_core.html.haml
blob: e67eb660bb873c074ab7c3fe40423e91c33b9bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%table.table.table-striped
  %tr
    %th
    %th= t('groups.index.name')
    %th= t('groups.index.permissions')
    %th= t('groups.index.memberships')
    %th= t('groups.index.comment')

  
  - for group in groups
    %tr
      %td
        -if group.active
          %i.icon-ok
        - 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}