retrospring/app/views/shared/_comment_smiles.html.haml

19 lines
1,005 B
Text
Raw Normal View History

.modal.fade{"id" => "modal-view-comment#{comment.id}-smiles","aria-hidden" => "true", "aria-labelledby" => "modal-view-comment#{comment.id}-smiles-label", :role => "dialog", :tabindex => "-1"}
.modal-dialog
.modal-content
.modal-header
%button.close{"data-dismiss" => "modal", :type => "button"}
%span{"aria-hidden" => "true"} ×
%span.sr-only Close
2015-05-27 03:53:53 +02:00
%h4#modal-ask-followers-label.modal-title= t 'views.answerbox.commentsmile'
.modal-body
- if comment.smiles.all.count == 0
2015-05-27 03:53:53 +02:00
= t 'views.answerbox.no_smile'
- else
%ul.user-list.user-list-smiles
- comment.smiles.all.each do |smile|
%li.user-list-entry.user-list-entry-smiles
%a{href: show_user_profile_path(smile.user.screen_name)}
2020-04-21 00:18:14 +02:00
%img.img-rounded{src: smile.user), alt: user_screen_name(smile.user, url: false.profile_picture.url(:medium)}
%span= user_screen_name(smile.user, url: false)