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