gitlab-org--gitlab-foss/app/controllers/admin/dashboard_controller.rb

13 lines
359 B
Ruby
Raw Normal View History

2012-04-20 12:41:49 -04:00
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