Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-04-20 20:41:49 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-04-20 20:41:49 +0400
commit35e21b3402ae934a33b31aa7d6049abaf861f766 (patch)
treebacd4f045419d02318d5eb9183c3f029b6c61a87 /app/controllers/admin/dashboard_controller.rb
parent1d601616a33aaa95e2ac7b21ff041b4a840df33c (diff)
Admin dashboard
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
-rw-r--r--app/controllers/admin/dashboard_controller.rb12
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