diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-04-20 20:41:49 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-04-20 20:41:49 +0400 |
commit | 35e21b3402ae934a33b31aa7d6049abaf861f766 (patch) | |
tree | bacd4f045419d02318d5eb9183c3f029b6c61a87 /app/controllers/admin/dashboard_controller.rb | |
parent | 1d601616a33aaa95e2ac7b21ff041b4a840df33c (diff) |
Admin dashboard
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
-rw-r--r-- | app/controllers/admin/dashboard_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb new file mode 100644 index 00000000000..ad80f4d5903 --- /dev/null +++ b/app/controllers/admin/dashboard_controller.rb @@ -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 |