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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
be18397d
Commit
be18397d
authored
Sep 27, 2012
by
Cyril
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename ProjectController to ProjectResourceController
parent
933c5e41
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
21 additions
and
21 deletions
+21
-21
app/controllers/blame_controller.rb
app/controllers/blame_controller.rb
+1
-1
app/controllers/blob_controller.rb
app/controllers/blob_controller.rb
+1
-1
app/controllers/commit_controller.rb
app/controllers/commit_controller.rb
+1
-1
app/controllers/commits_controller.rb
app/controllers/commits_controller.rb
+1
-1
app/controllers/compare_controller.rb
app/controllers/compare_controller.rb
+1
-1
app/controllers/deploy_keys_controller.rb
app/controllers/deploy_keys_controller.rb
+1
-1
app/controllers/hooks_controller.rb
app/controllers/hooks_controller.rb
+1
-1
app/controllers/issues_controller.rb
app/controllers/issues_controller.rb
+1
-1
app/controllers/labels_controller.rb
app/controllers/labels_controller.rb
+1
-1
app/controllers/merge_requests_controller.rb
app/controllers/merge_requests_controller.rb
+1
-1
app/controllers/milestones_controller.rb
app/controllers/milestones_controller.rb
+1
-1
app/controllers/notes_controller.rb
app/controllers/notes_controller.rb
+1
-1
app/controllers/project_resource_controller.rb
app/controllers/project_resource_controller.rb
+1
-1
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+1
-1
app/controllers/protected_branches_controller.rb
app/controllers/protected_branches_controller.rb
+1
-1
app/controllers/refs_controller.rb
app/controllers/refs_controller.rb
+1
-1
app/controllers/repositories_controller.rb
app/controllers/repositories_controller.rb
+1
-1
app/controllers/snippets_controller.rb
app/controllers/snippets_controller.rb
+1
-1
app/controllers/team_members_controller.rb
app/controllers/team_members_controller.rb
+1
-1
app/controllers/tree_controller.rb
app/controllers/tree_controller.rb
+1
-1
app/controllers/wikis_controller.rb
app/controllers/wikis_controller.rb
+1
-1
app/views/layouts/project_resource.html.haml
app/views/layouts/project_resource.html.haml
+0
-0
No files found.
app/controllers/blame_controller.rb
View file @
be18397d
# Controller for viewing a file's blame
class
BlameController
<
ProjectController
class
BlameController
<
Project
Resource
Controller
include
ExtractsPath
# Authorize
...
...
app/controllers/blob_controller.rb
View file @
be18397d
# Controller for viewing a file's blame
class
BlobController
<
ProjectController
class
BlobController
<
Project
Resource
Controller
include
ExtractsPath
include
Gitlab
::
Encode
...
...
app/controllers/commit_controller.rb
View file @
be18397d
# Controller for a specific Commit
#
# Not to be confused with CommitsController, plural.
class
CommitController
<
ProjectController
class
CommitController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
...
...
app/controllers/commits_controller.rb
View file @
be18397d
require
"base64"
class
CommitsController
<
ProjectController
class
CommitsController
<
Project
Resource
Controller
include
ExtractsPath
# Authorize
...
...
app/controllers/compare_controller.rb
View file @
be18397d
class
CompareController
<
ProjectController
class
CompareController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
...
...
app/controllers/deploy_keys_controller.rb
View file @
be18397d
class
DeployKeysController
<
ProjectController
class
DeployKeysController
<
Project
Resource
Controller
respond_to
:html
# Authorize
...
...
app/controllers/hooks_controller.rb
View file @
be18397d
class
HooksController
<
ProjectController
class
HooksController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:authorize_admin_project!
,
only:
[
:new
,
:create
,
:destroy
]
...
...
app/controllers/issues_controller.rb
View file @
be18397d
class
IssuesController
<
ProjectController
class
IssuesController
<
Project
Resource
Controller
before_filter
:module_enabled
before_filter
:issue
,
only:
[
:edit
,
:update
,
:destroy
,
:show
]
helper_method
:issues_filter
...
...
app/controllers/labels_controller.rb
View file @
be18397d
class
LabelsController
<
ProjectController
class
LabelsController
<
Project
Resource
Controller
before_filter
:module_enabled
# Allow read any issue
...
...
app/controllers/merge_requests_controller.rb
View file @
be18397d
class
MergeRequestsController
<
ProjectController
class
MergeRequestsController
<
Project
Resource
Controller
before_filter
:module_enabled
before_filter
:merge_request
,
only:
[
:edit
,
:update
,
:destroy
,
:show
,
:commits
,
:diffs
,
:automerge
,
:automerge_check
,
:raw
]
before_filter
:validates_merge_request
,
only:
[
:show
,
:diffs
,
:raw
]
...
...
app/controllers/milestones_controller.rb
View file @
be18397d
class
MilestonesController
<
ProjectController
class
MilestonesController
<
Project
Resource
Controller
before_filter
:module_enabled
before_filter
:milestone
,
only:
[
:edit
,
:update
,
:destroy
,
:show
]
...
...
app/controllers/notes_controller.rb
View file @
be18397d
class
NotesController
<
ProjectController
class
NotesController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_note!
before_filter
:authorize_write_note!
,
only:
[
:create
]
...
...
app/controllers/project_controller.rb
→
app/controllers/project_
resource_
controller.rb
View file @
be18397d
class
ProjectController
<
ApplicationController
class
Project
Resource
Controller
<
ApplicationController
before_filter
:project
# Authorize
before_filter
:add_project_abilities
...
...
app/controllers/projects_controller.rb
View file @
be18397d
require
Rails
.
root
.
join
(
'lib'
,
'gitlab'
,
'graph_commit'
)
class
ProjectsController
<
ProjectController
class
ProjectsController
<
Project
Resource
Controller
skip_before_filter
:project
,
only:
[
:new
,
:create
]
# Authorize
...
...
app/controllers/protected_branches_controller.rb
View file @
be18397d
class
ProtectedBranchesController
<
ProjectController
class
ProtectedBranchesController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:require_non_empty_project
...
...
app/controllers/refs_controller.rb
View file @
be18397d
class
RefsController
<
ProjectController
class
RefsController
<
Project
Resource
Controller
include
Gitlab
::
Encode
# Authorize
...
...
app/controllers/repositories_controller.rb
View file @
be18397d
class
RepositoriesController
<
ProjectController
class
RepositoriesController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
...
...
app/controllers/snippets_controller.rb
View file @
be18397d
class
SnippetsController
<
ProjectController
class
SnippetsController
<
Project
Resource
Controller
before_filter
:snippet
,
only:
[
:show
,
:edit
,
:destroy
,
:update
,
:raw
]
# Allow read any snippet
...
...
app/controllers/team_members_controller.rb
View file @
be18397d
class
TeamMembersController
<
ProjectController
class
TeamMembersController
<
Project
Resource
Controller
# Authorize
before_filter
:authorize_read_project!
before_filter
:authorize_admin_project!
,
except:
[
:index
,
:show
]
...
...
app/controllers/tree_controller.rb
View file @
be18397d
# Controller for viewing a repository's file structure
class
TreeController
<
ProjectController
class
TreeController
<
Project
Resource
Controller
include
ExtractsPath
# Authorize
...
...
app/controllers/wikis_controller.rb
View file @
be18397d
class
WikisController
<
ProjectController
class
WikisController
<
Project
Resource
Controller
before_filter
:authorize_read_wiki!
before_filter
:authorize_write_wiki!
,
only:
[
:edit
,
:create
,
:history
]
before_filter
:authorize_admin_wiki!
,
only: :destroy
...
...
app/views/layouts/project.html.haml
→
app/views/layouts/project
_resource
.html.haml
View file @
be18397d
File moved
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