_group_members.html.haml 606 Bytes
Newer Older
1
- group_users_count = @group.group_members.count
2
.panel.panel-default
3
  .panel-heading
4
    %strong #{@group.name}
5
    group members (#{group_users_count})
6
    .pull-right
7
      = link_to members_group_path(@group), class: 'btn btn-small' do
8
        %i.icon-edit
9
  %ul.well-list
10
    - @group.group_members.order('access_level DESC').limit(20).each do |member|
11
      = render 'group_members/users_group', member: member, show_controls: false
12
13
14
    - if group_users_count > 20
      %li
        and #{group_users_count - 20} more. For full list visit #{link_to 'group members page', members_group_path(@group)}