Retrospring/app/views/modal/_comment_smiles.html.haml

18 lines
834 B
Plaintext
Raw Normal View History

.modal.fade{ id: "modal-view-comment#{comment.id}-smiles", aria: { hidden: true, labelledby: "modal-commentsmile-label" }, role: :dialog, tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
%h5.modal-title#modal-commentsmile-label= t(".title")
2023-01-04 02:48:22 -08:00
%button.btn-close{ data: { dismiss: :modal }, type: :button }
%span.visually-hidden Close
.modal-body
2020-05-10 03:53:30 -07:00
- if comment.smiles.all.count.zero?
= t(".none")
- else
2020-05-02 09:12:55 -07:00
%ul.smiles__user-list
- comment.smiles.all.each do |smile|
2020-05-02 09:12:55 -07:00
%li.smiles__user-list-entry
%a{ href: user_path(smile.user) }
%img{ src: smile.user.profile_picture.url(:small), alt: user_screen_name(smile.user, url: false) }
%span= user_screen_name(smile.user, url: false)