Fix only 20 group members showing on project member page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
6213263d32
commit
9dd2674963
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue