Added project has_one :last_event assoc. Fixed tab line-height after font-awesome. Increased projects per page on dashboard
This commit is contained in:
parent
a9a3480de9
commit
e0c43c46dd
4 changed files with 10 additions and 11 deletions
|
@ -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(20)
|
||||
@projects = @projects.page(params[:page]).per(30)
|
||||
|
||||
@events = Event.in_projects(current_user.project_ids).limit(20).offset(params[:offset] || 0)
|
||||
@last_push = current_user.recent_push
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue