13 lines
620 B
Plaintext
13 lines
620 B
Plaintext
- if a.comments.all.count == 0
|
|
There are no comments yet.
|
|
- else
|
|
%ul.comments
|
|
- a.comments.all.each do |comment|
|
|
%li{data: { comment_id: comment.id }}
|
|
%img.answerbox--img-small{src: gravatar_url(comment.user)}
|
|
%b= user_screen_name comment.user
|
|
= comment.content
|
|
- 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 }}
|
|
%span.text-muted.form-control-feedback.comments--count{id: "ab-comment-charcount-#{a.id}"} 160 |