diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-03 13:47:38 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-04 11:40:19 -0500 |
commit | 87b61db7ed6b782423397626b6ea414c43f24a15 (patch) | |
tree | 7a71342d12d5c23dc822f5a9698e786b9514a5c3 /app/controllers | |
parent | c5ed929d33981d4af25c701087a4eaca1348cc1b (diff) | |
download | gitlab-ce-87b61db7ed6b782423397626b6ea414c43f24a15.tar.gz |
Page project list on dashboard
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/dashboard/projects_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb index 721e2a6bcbd..a205ab7d34a 100644 --- a/app/controllers/dashboard/projects_controller.rb +++ b/app/controllers/dashboard/projects_controller.rb @@ -5,6 +5,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController @projects = current_user.authorized_projects.sorted_by_activity.non_archived @projects = @projects.sort(@sort = params[:sort]) @projects = @projects.includes(:namespace) + @projects = @projects.page(params[:page]).per(PER_PAGE) @last_push = current_user.recent_push respond_to do |format| @@ -21,6 +22,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController @projects = current_user.starred_projects @projects = @projects.includes(:namespace, :forked_from_project, :tags) @projects = @projects.sort(@sort = params[:sort]) + @projects = @projects.page(params[:page]).per(PER_PAGE) @last_push = current_user.recent_push @groups = [] |