Retrospring/app/views/answerbox/_smiles.haml

13 lines
430 B
Plaintext
Raw Normal View History

2014-12-14 06:41:08 -08:00
.media.smiles
2014-12-14 06:22:37 -08:00
.pull-left
%i.fa.fa-smile-o
.media-body
2020-05-10 05:22:04 -07:00
- if a.smiles.all.count.zero?
2015-05-26 18:53:53 -07:00
= t 'views.answerbox.no_smile'
2014-12-14 06:22:37 -08:00
- else
- a.smiles.all.each do |smile|
%a{ href: user_path(smile.user),
title: user_screen_name(smile.user, url: false),
2020-05-10 05:22:04 -07:00
data: { toggle: :tooltip, placement: :top, smile_id: smile.id } }
%img.avatar-xs{ src: smile.user.profile_picture.url(:medium) }