Fix only 20 group members showing on project member page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-12-09 01:43:57 +01:00
parent 6213263d32
commit 9dd2674963
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
@group_members = @group_members.where(user_id: users)
end
@group_members = @group_members.order('access_level DESC').limit(20)
@group_members = @group_members.order('access_level DESC')
end
@project_member = @project.project_members.new

View file

@ -10,7 +10,7 @@
= icon('pencil-square-o')
Manage group members
%ul.content-list
- members.each do |member|
- members.limit(20).each do |member|
= render 'groups/group_members/group_member', member: member, show_controls: false
- if members.count > 20
%li