summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-10-09 10:01:07 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-10-09 10:01:07 +0300
commitc348284fedb487474626b3dae9be73311f8382df (patch)
tree2e0982ed43a0b07d7cfe6927ad8f6b07f1b73662
parentce1b742b1e61d8726078e0060ba52aa8b9985c1b (diff)
downloadgitlab-ce-c348284fedb487474626b3dae9be73311f8382df.tar.gz
Reduce count of projects on dashboard to 20
-rw-r--r--app/controllers/dashboard_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 1f142dae4c4..ee82d0f44db 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -4,7 +4,7 @@ class DashboardController < ApplicationController
def index
@groups = Group.where(id: current_user.projects.pluck(:group_id))
@projects = current_user.projects_with_events
- @projects = @projects.page(params[:page]).per(40)
+ @projects = @projects.page(params[:page]).per(20)
@events = Event.recent_for_user(current_user).limit(20).offset(params[:offset] || 0)
@last_push = current_user.recent_push