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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
150c4b6d
Commit
150c4b6d
authored
Oct 05, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to ProjectsController
parent
73399b6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+10
-0
ee/app/controllers/ee/projects_controller.rb
ee/app/controllers/ee/projects_controller.rb
+2
-0
No files found.
app/controllers/projects_controller.rb
View file @
150c4b6d
...
...
@@ -47,6 +47,16 @@ class ProjectsController < Projects::ApplicationController
layout
:determine_layout
feature_category
:projects
,
[
:index
,
:show
,
:new
,
:create
,
:edit
,
:update
,
:transfer
,
:destroy
,
:resolve
,
:archive
,
:unarchive
,
:toggle_star
]
feature_category
:source_code_management
,
[
:remove_fork
,
:housekeeping
,
:refs
]
feature_category
:issue_tracking
,
[
:preview_markdown
,
:new_issuable_address
]
feature_category
:importers
,
[
:export
,
:remove_export
,
:generate_new_export
,
:download_export
]
feature_category
:audit_events
,
[
:activity
]
def
index
redirect_to
(
current_user
?
root_path
:
explore_root_path
)
end
...
...
ee/app/controllers/ee/projects_controller.rb
View file @
150c4b6d
...
...
@@ -9,6 +9,8 @@ module EE
before_action
:log_download_export_audit_event
,
only:
[
:download_export
]
before_action
:log_archive_audit_event
,
only:
[
:archive
]
before_action
:log_unarchive_audit_event
,
only:
[
:unarchive
]
feature_category
:projects
,
[
:restore
]
end
def
restore
...
...
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