Retrospring/app/views/answerbox/_smiles.html.haml

13 lines
441 B
Plaintext

.d-flex.smiles
.flex-shrink-0.me-1
%i.fa.fa-smile-o
.flex-grow-1
- 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: { controller: :tooltip, bs_placement: :top, smile_id: smile.id, turbo: :false } }
= render AvatarComponent.new(user: smile.user, size: "xs")