2012-09-16 13:44:54 +02:00
|
|
|
class Admin::DashboardController < AdminController
|
2012-04-20 18:41:49 +02:00
|
|
|
def index
|
|
|
|
@projects = Project.order("created_at DESC").limit(10)
|
|
|
|
@users = User.order("created_at DESC").limit(10)
|
2012-11-21 11:45:15 +01:00
|
|
|
|
|
|
|
@resque_accessible = true
|
|
|
|
@workers = Resque.workers
|
|
|
|
@pending_jobs = Resque.size(:post_receive)
|
|
|
|
|
|
|
|
rescue Redis::InheritedError
|
|
|
|
@resque_accessible = false
|
2012-04-20 18:41:49 +02:00
|
|
|
end
|
|
|
|
end
|