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
Kazuhiko Shiozaki
gitlab-ce
Commits
933c5e41
Commit
933c5e41
authored
Sep 27, 2012
by
Cyril
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update new controllers
parent
e563e948
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
28 deletions
+5
-28
app/controllers/blame_controller.rb
app/controllers/blame_controller.rb
+1
-6
app/controllers/blob_controller.rb
app/controllers/blob_controller.rb
+1
-6
app/controllers/commit_controller.rb
app/controllers/commit_controller.rb
+1
-5
app/controllers/compare_controller.rb
app/controllers/compare_controller.rb
+1
-5
app/controllers/tree_controller.rb
app/controllers/tree_controller.rb
+1
-6
No files found.
app/controllers/blame_controller.rb
View file @
933c5e41
# Controller for viewing a file's blame
# Controller for viewing a file's blame
class
BlameController
<
Application
Controller
class
BlameController
<
Project
Controller
include
ExtractsPath
include
ExtractsPath
layout
"project"
before_filter
:project
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
...
...
app/controllers/blob_controller.rb
View file @
933c5e41
# Controller for viewing a file's blame
# Controller for viewing a file's blame
class
BlobController
<
Application
Controller
class
BlobController
<
Project
Controller
include
ExtractsPath
include
ExtractsPath
include
Gitlab
::
Encode
include
Gitlab
::
Encode
layout
"project"
before_filter
:project
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
...
...
app/controllers/commit_controller.rb
View file @
933c5e41
# Controller for a specific Commit
# Controller for a specific Commit
#
#
# Not to be confused with CommitsController, plural.
# Not to be confused with CommitsController, plural.
class
CommitController
<
ApplicationController
class
CommitController
<
ProjectController
before_filter
:project
layout
"project"
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
...
...
app/controllers/compare_controller.rb
View file @
933c5e41
class
CompareController
<
ApplicationController
class
CompareController
<
ProjectController
before_filter
:project
layout
"project"
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
...
...
app/controllers/tree_controller.rb
View file @
933c5e41
# Controller for viewing a repository's file structure
# Controller for viewing a repository's file structure
class
TreeController
<
Application
Controller
class
TreeController
<
Project
Controller
include
ExtractsPath
include
ExtractsPath
layout
"project"
before_filter
:project
# Authorize
# Authorize
before_filter
:add_project_abilities
before_filter
:authorize_read_project!
before_filter
:authorize_read_project!
before_filter
:authorize_code_access!
before_filter
:authorize_code_access!
before_filter
:require_non_empty_project
before_filter
:require_non_empty_project
...
...
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