diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index c7c51a0c..5229c469 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -46,4 +46,5 @@ .col-md-6.col-md-offset-6.col-sm-8.col-sm-offset-4.col-xs-6.col-xs-offset-6.text-right = render 'shared/answerbox_buttons', a: a .panel-footer{id: "ab-comments-#{a.id}", style: 'display: none'} + = render 'shared/smiles', a: a = render 'shared/comments', a: a diff --git a/app/views/shared/_smiles.html.haml b/app/views/shared/_smiles.html.haml new file mode 100644 index 00000000..5aa62bd1 --- /dev/null +++ b/app/views/shared/_smiles.html.haml @@ -0,0 +1,10 @@ +.media + .pull-left + %i.fa.fa-smile-o + .media-body + - if a.smiles.all.count == 0 + No one smiled this, yet. + - else + - a.smiles.all.each do |smile| + %a{href: show_user_profile_path(smile.user), data: {smile_id: smile.id}} + %img.img-rounded.answerbox--img-small{src: gravatar_url(smile.user)} \ No newline at end of file