Dont add title attr to user_avatar_without_link if has_tooltip is false
This commit is contained in:
parent
417e79bbbc
commit
58803cd8e0
|
@ -117,9 +117,9 @@ module AvatarsHelper
|
|||
alt: "#{user_name}'s avatar",
|
||||
src: avatar_url,
|
||||
data: data_attributes,
|
||||
class: css_class,
|
||||
title: user_name
|
||||
class: css_class
|
||||
}
|
||||
image_options[:title] = user_name if has_tooltip
|
||||
|
||||
tag(:img, image_options)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue