retrospring/app/views/answerbox/_smiles.haml
2022-07-31 15:14:02 +02:00

12 lines
412 B
Text

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