retrospring/app/views/answerbox/_smiles.haml
Robin B 9cb17f7488 Use user_screen_name() in smile tooltip
As suggested by @pixeldesu

Co-authored-by: Andreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>
2020-05-31 03:27:12 +02:00

12 lines
473 B
Text

.media.smiles
.pull-left
%i.fa.fa-smile-o
.media-body
- if a.smiles.all.count.zero?
= t 'views.answerbox.no_smile'
- else
- a.smiles.all.each do |smile|
%a{ href: show_user_profile_path(smile.user.screen_name),
title: user_screen_name(smile.user, anonymous: false, url: false),
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }