diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-02 18:58:00 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-02 18:58:00 +0300 |
commit | 9a4c8f7e41eaec63d98431f5ff776240e2dc7604 (patch) | |
tree | 730131663eec8270b5b6da464cfa6906d889f35f /app/controllers/admin | |
parent | 34cf3c49167464ea00635cc4db17c67032fe1610 (diff) | |
download | gitlab-ce-9a4c8f7e41eaec63d98431f5ff776240e2dc7604.tar.gz |
Improve admin group page performance
Add pagination for projects and members to /admin/groups/:group page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/groups_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb index 4bb3cf07da0..1a523d081dd 100644 --- a/app/controllers/admin/groups_controller.rb +++ b/app/controllers/admin/groups_controller.rb @@ -8,6 +8,8 @@ class Admin::GroupsController < Admin::ApplicationController end def show + @members = @group.members.order("group_access DESC").page(params[:members_page]).per(30) + @projects = @group.projects.page(params[:projects_page]).per(30) end def new |