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
58803cd8
Commit
58803cd8
authored
Jul 17, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont add title attr to user_avatar_without_link if has_tooltip is false
parent
417e79bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/helpers/avatars_helper.rb
app/helpers/avatars_helper.rb
+2
-2
No files found.
app/helpers/avatars_helper.rb
View file @
58803cd8
...
@@ -117,9 +117,9 @@ module AvatarsHelper
...
@@ -117,9 +117,9 @@ module AvatarsHelper
alt:
"
#{
user_name
}
's avatar"
,
alt:
"
#{
user_name
}
's avatar"
,
src:
avatar_url
,
src:
avatar_url
,
data:
data_attributes
,
data:
data_attributes
,
class:
css_class
,
class:
css_class
title:
user_name
}
}
image_options
[
:title
]
=
user_name
if
has_tooltip
tag
(
:img
,
image_options
)
tag
(
:img
,
image_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