diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c53c5b4e0..9641f46a5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -193,9 +193,8 @@ module ApplicationHelper .first end user_description = %(
- thumb -
+ thumb
#{user.full_name}
@@ -212,8 +211,7 @@ module ApplicationHelper user_description += %(

) end - raw(image_tag(Rails.application.routes.url_helpers - .avatar_path(user, :icon_small), + raw(image_tag(set_avatar_absolute_url(user, :icon_small), class: 'atwho-user-img-popover')) + raw('') + user.full_name + raw('') end + + def set_avatar_absolute_url(user, style) + unless user.avatar(style) == '/images/icon_small/missing.png' + return user.avatar(style) + end + URI.join(root_url, "/images/#{style}/missing.png").to_s + end end