2015-04-26 12:48:37 +05:30
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%strong #{@group.name}
|
|
|
|
group members
|
2016-08-24 12:49:21 +05:30
|
|
|
%span.badge= members.size
|
2015-12-23 02:04:40 +05:30
|
|
|
- if can?(current_user, :admin_group_member, @group)
|
2016-04-02 18:10:28 +05:30
|
|
|
.controls
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to 'Manage group members',
|
|
|
|
group_group_members_path(@group),
|
|
|
|
class: 'btn'
|
2015-12-23 02:04:40 +05:30
|
|
|
%ul.content-list
|
2016-06-16 23:09:34 +05:30
|
|
|
= render partial: 'shared/members/member',
|
|
|
|
collection: members.limit(20),
|
|
|
|
as: :member,
|
|
|
|
locals: { show_controls: false }
|
|
|
|
- if members.size > 20
|
2015-04-26 12:48:37 +05:30
|
|
|
%li
|
|
|
|
and #{members.count - 20} more. For full list visit #{link_to 'group members page', group_group_members_path(@group)}
|