Use user_screen_name() in smile tooltip
As suggested by @pixeldesu Co-authored-by: Andreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>
This commit is contained in:
parent
07d73b6fa4
commit
9cb17f7488
|
@ -7,6 +7,6 @@
|
||||||
- else
|
- else
|
||||||
- a.smiles.all.each do |smile|
|
- a.smiles.all.each do |smile|
|
||||||
%a{ href: show_user_profile_path(smile.user.screen_name),
|
%a{ href: show_user_profile_path(smile.user.screen_name),
|
||||||
title: smile.user.display_name,
|
title: user_screen_name(smile.user, anonymous: false, url: false),
|
||||||
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
|
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
|
||||||
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }
|
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }
|
||||||
|
|
Loading…
Reference in New Issue