2015-03-13 11:30:36 -04:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
2016-09-01 08:48:20 -04:00
|
|
|
Group members with access to
|
2017-01-13 11:07:21 -05:00
|
|
|
%strong= @group.name
|
2016-06-20 09:50:46 -04:00
|
|
|
%span.badge= members.size
|
2015-12-02 08:58:40 -05:00
|
|
|
- if can?(current_user, :admin_group_member, @group)
|
2016-01-22 16:37:05 -05:00
|
|
|
.controls
|
2016-06-02 12:05:06 -04:00
|
|
|
= link_to 'Manage group members',
|
|
|
|
group_group_members_path(@group),
|
|
|
|
class: 'btn'
|
2015-11-24 11:11:45 -05:00
|
|
|
%ul.content-list
|
2016-04-18 12:53:32 -04:00
|
|
|
= render partial: 'shared/members/member',
|
|
|
|
collection: members.limit(20),
|
|
|
|
as: :member,
|
|
|
|
locals: { show_controls: false }
|
|
|
|
- if members.size > 20
|
2015-03-13 11:30:36 -04:00
|
|
|
%li
|
2016-06-02 12:05:06 -04:00
|
|
|
and #{members.count - 20} more. For full list visit #{link_to 'group members page', group_group_members_path(@group)}
|