Commit c348284fedb487474626b3dae9be73311f8382df

Authored by randx
1 parent ce1b742b

Reduce count of projects on dashboard to 20

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/dashboard_controller.rb
@@ -4,7 +4,7 @@ class DashboardController < ApplicationController @@ -4,7 +4,7 @@ class DashboardController < ApplicationController
4 def index 4 def index
5 @groups = Group.where(id: current_user.projects.pluck(:group_id)) 5 @groups = Group.where(id: current_user.projects.pluck(:group_id))
6 @projects = current_user.projects_with_events 6 @projects = current_user.projects_with_events
7 - @projects = @projects.page(params[:page]).per(40) 7 + @projects = @projects.page(params[:page]).per(20)
8 8
9 @events = Event.recent_for_user(current_user).limit(20).offset(params[:offset] || 0) 9 @events = Event.recent_for_user(current_user).limit(20).offset(params[:offset] || 0)
10 @last_push = current_user.recent_push 10 @last_push = current_user.recent_push