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
bcaf86da
Commit
bcaf86da
authored
Nov 19, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a route to project audit_events.
parent
b722baee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
app/controllers/audit_events_controller.rb
app/controllers/audit_events_controller.rb
+17
-0
config/routes.rb
config/routes.rb
+2
-0
No files found.
app/controllers/audit_events_controller.rb
0 → 100644
View file @
bcaf86da
class
AuditEventsController
<
ApplicationController
# Authorize
before_filter
:repository
,
only: :project_log
before_filter
:authorize_admin_project!
,
only: :project_log
layout
"project_settings"
def
project_log
@events
=
AuditEvent
.
where
(
entity_type:
"Project"
,
entity_id:
project
.
id
)
end
private
def
audit_events_params
params
.
permit
(
:project_id
)
end
end
config/routes.rb
View file @
bcaf86da
...
...
@@ -358,6 +358,8 @@ Gitlab::Application.routes.draw do
end
end
end
get
"/audit_events"
=>
"audit_events#project_log"
end
get
':id'
=>
"namespaces#show"
,
constraints:
{
id:
/(?:[^.]|\.(?!atom$))+/
,
format:
/atom/
}
...
...
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