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
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
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
application_controller.rb
app/controllers/admin/application_controller.rb
+1
-1
dashboard_controller.rb
app/controllers/admin/dashboard_controller.rb
+1
-1
groups_controller.rb
app/controllers/admin/groups_controller.rb
+1
-1
hooks_controller.rb
app/controllers/admin/hooks_controller.rb
+1
-1
logs_controller.rb
app/controllers/admin/logs_controller.rb
+1
-1
projects_controller.rb
app/controllers/admin/projects_controller.rb
+1
-1
resque_controller.rb
app/controllers/admin/resque_controller.rb
+1
-1
team_members_controller.rb
app/controllers/admin/team_members_controller.rb
+1
-1
teams_controller.rb
app/controllers/admin/teams_controller.rb
+1
-1
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