BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a52936f3
Commit
a52936f3
authored
May 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renames resque resource to background_jobs
parent
84e4cfc6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
15 deletions
+12
-15
background_jobs_controller.rb
app/controllers/admin/background_jobs_controller.rb
+1
-1
dashboard_controller.rb
app/controllers/admin/dashboard_controller.rb
+0
-3
show.html.haml
app/views/admin/background_jobs/show.html.haml
+0
-0
index.html.haml
app/views/admin/dashboard/index.html.haml
+8
-8
_admin.html.haml
app/views/layouts/nav/_admin.html.haml
+2
-2
routes.rb
config/routes.rb
+1
-1
No files found.
app/controllers/admin/
resque
_controller.rb
→
app/controllers/admin/
background_jobs
_controller.rb
View file @
a52936f3
class
Admin
::
Resque
Controller
<
Admin
::
ApplicationController
class
Admin
::
BackgroundJobs
Controller
<
Admin
::
ApplicationController
def
show
end
end
app/controllers/admin/dashboard_controller.rb
View file @
a52936f3
...
...
@@ -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
app/views/admin/
resque
/show.html.haml
→
app/views/admin/
background_jobs
/show.html.haml
View file @
a52936f3
File moved
app/views/admin/dashboard/index.html.haml
View file @
a52936f3
...
...
@@ -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
...
...
app/views/layouts/nav/_admin.html.haml
View file @
a52936f3
...
...
@@ -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
config/routes.rb
View file @
a52936f3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment