Retrospring/app/views/modal/_comment_smiles.haml

19 lines
932 B
Plaintext
Raw Normal View History

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 }
.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 } } ×
%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'
- 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
2020-05-10 03:53:30 -07:00
%a{ href: show_user_profile_path(smile.user.screen_name) }
%img{ src: smile.user.profile_picture.url(:medium), alt: user_screen_name(smile.user, url: false) }
%span= user_screen_name(smile.user, url: false)