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:
randx 2012-10-17 22:02:52 +03:00
parent a9a3480de9
commit e0c43c46dd
4 changed files with 10 additions and 11 deletions

View file

@ -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