mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 11:09:59 +01:00
update comment design again
This commit is contained in:
parent
f8d8c13fb9
commit
1700bfb0f5
1 changed files with 15 additions and 15 deletions
|
@ -9,22 +9,22 @@
|
|||
%img.img-rounded.answerbox--img{src: gravatar_url(comment.user)}
|
||||
.media-body
|
||||
%h6.media-heading.answerbox--question-user= user_screen_name comment.user
|
||||
- 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
|
||||
%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
|
||||
- if user_signed_in?
|
||||
.form-group.has-feedback{name: 'ab-comment-new-group', 'data-a-id' => a.id}
|
||||
%input.form-control.comments--box{type: :text, placeholder: 'Comment...', name: 'ab-comment-new', data: {a_id: a.id }}
|
||||
|
|
Loading…
Reference in a new issue