mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 02:57:48 +01:00
copy-pasted comment section for moderation
This commit is contained in:
parent
56441a4967
commit
84806a8001
1 changed files with 23 additions and 4 deletions
|
@ -1,9 +1,28 @@
|
||||||
There are no comments yet
|
There are no comments yet
|
||||||
%ul.comments
|
%ul.comments
|
||||||
%li
|
- a.comments.all.each do |comment|
|
||||||
%img.img-rounded.answerbox--img-small
|
%li{data: { comment_id: comment.id }}
|
||||||
%b username
|
.media.comments--media
|
||||||
comment
|
.pull-left
|
||||||
|
%img.img-rounded.answerbox--img{src: gravatar_url(comment.user)}
|
||||||
|
.media-body.comments--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.comments--content= comment.content
|
||||||
.form-group.has-feedback
|
.form-group.has-feedback
|
||||||
%input.form-control.comments--box{type: :text, placeholder: 'Comment...'}
|
%input.form-control.comments--box{type: :text, placeholder: 'Comment...'}
|
||||||
%span.text-muted.form-control-feedback.comments--count 160
|
%span.text-muted.form-control-feedback.comments--count 160
|
Loading…
Reference in a new issue