Commit 58803cd8 authored by Luke Bennett's avatar Luke Bennett

Dont add title attr to user_avatar_without_link if has_tooltip is false

parent 417e79bb
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment