2020-05-10 03:53:30 -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
|
2020-05-10 03:53:30 -07:00
|
|
|
|
%h5.modal-title#modal-commentsmile-label= t 'views.answerbox.commentsmile'
|
|
|
|
|
%button.close{ data: { dismiss: :modal }, type: :button }
|
|
|
|
|
%span{ aria: { hidden: true } } ×
|
2015-05-03 18:39:41 -07:00
|
|
|
|
%span.sr-only Close
|
|
|
|
|
.modal-body
|
2020-05-10 03:53:30 -07:00
|
|
|
|
- if comment.smiles.all.count.zero?
|
2015-05-26 18:53:53 -07:00
|
|
|
|
= t 'views.answerbox.no_smile'
|
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)
|