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",
|
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
|
||||||
|
|
Loading…
Reference in New Issue