2014-12-05 11:17:44 -08:00
|
|
|
- if a.comments.all.count == 0
|
2014-12-05 10:50:21 -08:00
|
|
|
There are no comments yet.
|
|
|
|
- else # TODO: some design guy (i.e. pixeldesu) should make some black magic here
|
|
|
|
%ul
|
2014-12-05 11:17:44 -08:00
|
|
|
- a.comments.all.each do |comment|
|
|
|
|
%li{'data-comment-id' => comment.id}
|
2014-12-05 10:50:21 -08:00
|
|
|
#{user_screen_name comment.user}:
|
2014-12-05 11:17:44 -08:00
|
|
|
= comment.content
|
|
|
|
- if user_signed_in?
|
|
|
|
.form-group.has-feedback
|
|
|
|
%input.form-control{type: :text, placeholder: 'Comment...', id: "ab-comments-#{a.id}-new"}
|
|
|
|
%span.text-muted.form-control-feedback.comment-count{id: "ab-comments-#{a.id}-charcount"} 160
|