Admin dashboard
This commit is contained in:
parent
1d601616a3
commit
35e21b3402
5 changed files with 76 additions and 1 deletions
12
app/controllers/admin/dashboard_controller.rb
Normal file
12
app/controllers/admin/dashboard_controller.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class Admin::DashboardController < ApplicationController
|
||||
layout "admin"
|
||||
before_filter :authenticate_user!
|
||||
before_filter :authenticate_admin!
|
||||
|
||||
def index
|
||||
@workers = Resque.workers
|
||||
@pending_jobs = Resque.size(:post_receive)
|
||||
@projects = Project.order("created_at DESC").limit(10)
|
||||
@users = User.order("created_at DESC").limit(10)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue