BigW Consortium Gitlab

Commit a52936f3 by Dmitriy Zaporozhets

Renames resque resource to background_jobs

parent 84e4cfc6
class Admin::ResqueController < Admin::ApplicationController
class Admin::BackgroundJobsController < Admin::ApplicationController
def show
end
end
......@@ -2,8 +2,5 @@ class Admin::DashboardController < Admin::ApplicationController
def index
@projects = Project.order("created_at DESC").limit(10)
@users = User.order("created_at DESC").limit(10)
rescue Redis::InheritedError
@resque_accessible = false
end
end
......@@ -9,20 +9,20 @@
= link_to 'New Project', new_project_path, class: "btn btn-small"
.span4
.ui-box
%h5.title Groups
.data.padded
= link_to admin_groups_path do
%h1= Group.count
%hr
= link_to 'New Group', new_admin_group_path, class: "btn btn-small"
.span4
.ui-box
%h5.title Users
.data.padded
= link_to admin_users_path do
%h1= User.count
%hr
= link_to 'New User', new_admin_user_path, class: "btn btn-small"
.span4
.ui-box
%h5.title Groups
.data.padded
= link_to admin_groups_path do
%h1= Group.count
%hr
= link_to 'New Group', new_admin_group_path, class: "btn btn-small"
.row
.span4
......
......@@ -14,6 +14,6 @@
= link_to "Logs", admin_logs_path
= nav_link(controller: :hooks) do
= link_to "Hooks", admin_hooks_path
= nav_link(controller: :resque) do
= link_to "Background Jobs", admin_resque_path
= nav_link(controller: :background_jobs) do
= link_to "Background Jobs", admin_background_jobs_path
......@@ -83,7 +83,7 @@ Gitlab::Application.routes.draw do
end
resource :logs, only: [:show]
resource :resque, controller: 'resque', only: [:show]
resource :background_jobs, controller: 'background_jobs', only: [:show]
resources :projects, constraints: { id: /[a-zA-Z.\/0-9_\-]+/ }, only: [:index, :show] do
scope module: :projects, constraints: { id: /[a-zA-Z.\/0-9_\-]+/ } do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment