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
f9f32231
Commit
f9f32231
authored
Sep 15, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add custom action to details
parent
752579fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/audit/details.rb
lib/audit/details.rb
+3
-1
No files found.
lib/audit/details.rb
View file @
f9f32231
module
Audit
module
Audit
class
Details
class
Details
ACTIONS
=
%i[add remove failed_login change]
.
freeze
ACTIONS
=
%i[add remove failed_login change
custom_message
]
.
freeze
def
self
.
humanize
(
*
args
)
def
self
.
humanize
(
*
args
)
new
(
*
args
).
humanize
new
(
*
args
).
humanize
...
@@ -31,6 +31,8 @@ module Audit
...
@@ -31,6 +31,8 @@ module Audit
"Removed
#{
value
}
"
"Removed
#{
value
}
"
when
:failed_login
when
:failed_login
"Failed to login with
#{
Gitlab
::
OAuth
::
Provider
.
label_for
(
value
).
upcase
}
authentication"
"Failed to login with
#{
Gitlab
::
OAuth
::
Provider
.
label_for
(
value
).
upcase
}
authentication"
when
:custom
value
else
else
text_for_change
(
value
)
text_for_change
(
value
)
end
end
...
...
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