Dashboard to resource
This commit is contained in:
parent
bd3b677b86
commit
6b01196fb2
11 changed files with 45 additions and 32 deletions
|
@ -2,9 +2,9 @@ class DashboardController < ApplicationController
|
|||
respond_to :html
|
||||
|
||||
before_filter :load_projects
|
||||
before_filter :event_filter, only: :index
|
||||
before_filter :event_filter, only: :show
|
||||
|
||||
def index
|
||||
def show
|
||||
@groups = current_user.authorized_groups
|
||||
@has_authorized_projects = @projects.count > 0
|
||||
@teams = current_user.authorized_teams
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue