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
14f31eb9
Commit
14f31eb9
authored
Jul 17, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add has_tooltip bool handling for commit_person_link
parent
58803cd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+8
-5
No files found.
app/helpers/commits_helper.rb
View file @
14f31eb9
...
...
@@ -145,15 +145,18 @@ module CommitsHelper
person_name
end
options
=
{
class:
"commit-
#{
options
[
:source
]
}
-link has-tooltip"
,
title:
source_email
link_options
=
{
class:
"commit-
#{
options
[
:source
]
}
-link"
,
}
unless
options
[
:has_tooltip
]
==
false
link_options
[
:class
]
<<
' has-tooltip'
link_options
[
:title
]
=
source_email
end
if
user
.
nil?
mail_to
(
source_email
,
text
,
options
)
mail_to
(
source_email
,
text
,
link_
options
)
else
link_to
(
text
,
user_path
(
user
),
options
)
link_to
(
text
,
user_path
(
user
),
link_
options
)
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