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

dashboard_controller.rb « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ad80f4d59030fa53e1328635bf58f3378b292e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
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