update comment design

This commit is contained in:
Andreas N 2014-12-27 15:12:57 +01:00
parent b625144993
commit 395d1691f8
1 changed files with 21 additions and 1 deletions

View File

@ -4,7 +4,27 @@
%ul.comments
- a.comments.all.each do |comment|
%li{data: { comment_id: comment.id }}
%img.img-rounded.answerbox--img-small{src: gravatar_url(comment.user)}
.media
.pull-left
%img.img-rounded.answerbox--img{src: gravatar_url(comment.user)}
.media-body
%h6.media-heading.answerbox--question-user= user_screen_name comment.user
%p= comment.content
- if user_signed_in?
.pull-right
%btn-group
%button.btn.btn-link.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
%span.caret
%ul.dropdown-menu.dropdown-menu-right{role: :menu}
- if privileged? a.user
%li.text-danger
%a{href: '#', name: 'ab-destroy', data: { a_id: comment.id }}
%i.fa.fa-trash-o
Delete
%li
%a{href: '#', name: 'ab-report', data: { a_id: comment.id }}
%i.fa.fa-exclamation-triangle
Report
%b= user_screen_name comment.user
= comment.content
- if user_signed_in?