Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9d318db4
Commit
9d318db4
authored
Jan 20, 2013
by
Andrey Kumanyaev
Committed by
Dmitriy Zaporozhets
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the correct hierarchy of controllers for the administrative part
parent
29847168
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
app/controllers/admin/application_controller.rb
app/controllers/admin/application_controller.rb
+1
-1
app/controllers/admin/dashboard_controller.rb
app/controllers/admin/dashboard_controller.rb
+1
-1
app/controllers/admin/groups_controller.rb
app/controllers/admin/groups_controller.rb
+1
-1
app/controllers/admin/hooks_controller.rb
app/controllers/admin/hooks_controller.rb
+1
-1
app/controllers/admin/logs_controller.rb
app/controllers/admin/logs_controller.rb
+1
-1
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
+1
-1
app/controllers/admin/resque_controller.rb
app/controllers/admin/resque_controller.rb
+1
-1
app/controllers/admin/team_members_controller.rb
app/controllers/admin/team_members_controller.rb
+1
-1
app/controllers/admin/teams_controller.rb
app/controllers/admin/teams_controller.rb
+1
-1
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+1
-1
No files found.
app/controllers/admin_controller.rb
→
app/controllers/admin
/application
_controller.rb
View file @
9d318db4
# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
class
AdminController
<
ApplicationController
class
Admin
::Application
Controller
<
ApplicationController
layout
'admin'
before_filter
:authenticate_admin!
...
...
app/controllers/admin/dashboard_controller.rb
View file @
9d318db4
class
Admin::DashboardController
<
AdminController
class
Admin::DashboardController
<
Admin
::
Application
Controller
def
index
@projects
=
Project
.
order
(
"created_at DESC"
).
limit
(
10
)
@users
=
User
.
order
(
"created_at DESC"
).
limit
(
10
)
...
...
app/controllers/admin/groups_controller.rb
View file @
9d318db4
class
Admin::GroupsController
<
AdminController
class
Admin::GroupsController
<
Admin
::
Application
Controller
before_filter
:group
,
only:
[
:edit
,
:show
,
:update
,
:destroy
,
:project_update
,
:project_teams_update
]
def
index
...
...
app/controllers/admin/hooks_controller.rb
View file @
9d318db4
class
Admin::HooksController
<
AdminController
class
Admin::HooksController
<
Admin
::
Application
Controller
def
index
@hooks
=
SystemHook
.
all
@hook
=
SystemHook
.
new
...
...
app/controllers/admin/logs_controller.rb
View file @
9d318db4
class
Admin::LogsController
<
AdminController
class
Admin::LogsController
<
Admin
::
Application
Controller
end
app/controllers/admin/projects_controller.rb
View file @
9d318db4
class
Admin::ProjectsController
<
AdminController
class
Admin::ProjectsController
<
Admin
::
Application
Controller
before_filter
:project
,
only:
[
:edit
,
:show
,
:update
,
:destroy
,
:team_update
]
def
index
...
...
app/controllers/admin/resque_controller.rb
View file @
9d318db4
class
Admin::ResqueController
<
AdminController
class
Admin::ResqueController
<
Admin
::
Application
Controller
def
show
end
end
app/controllers/admin/team_members_controller.rb
View file @
9d318db4
class
Admin::TeamMembersController
<
AdminController
class
Admin::TeamMembersController
<
Admin
::
Application
Controller
def
edit
@admin_team_member
=
UsersProject
.
find
(
params
[
:id
])
end
...
...
app/controllers/admin/teams_controller.rb
View file @
9d318db4
class
Admin::TeamsController
<
AdminController
class
Admin::TeamsController
<
Admin
::
Application
Controller
before_filter
:user_team
,
only:
[
:edit
,
:show
,
:update
,
:destroy
,
:delegate_projects
,
:relegate_project
,
...
...
app/controllers/admin/users_controller.rb
View file @
9d318db4
class
Admin::UsersController
<
AdminController
class
Admin::UsersController
<
Admin
::
Application
Controller
def
index
@admin_users
=
User
.
scoped
@admin_users
=
@admin_users
.
filter
(
params
[
:filter
])
...
...
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