Unverified Commit fd12e5c6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Dont render more than 20 group members on Project#members page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 730dd0a87d97
- group_users_count = @group.users_groups.count
%strong #{@group.name}
group members (#{@group.users_groups.count})
group members (#{group_users_count})
= link_to members_group_path(@group), class: 'btn btn-small' do
- @group.users_groups.order('group_access DESC').each do |member|
- @group.users_groups.order('group_access DESC').limit(20).each do |member|
= render 'users_groups/users_group', member: member, show_controls: false
- if group_users_count > 20
and #{group_users_count - 20} more. For full list visit #{link_to 'group members page', members_group_path(@group)}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment