retrospring/app/views/answerbox/_smiles.haml
2020-04-27 02:11:54 +02:00

10 lines
No EOL
434 B
Text

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