changed display for comments

This commit is contained in:
pixeldesu 2014-12-07 15:36:08 +01:00
parent bc4e6d4ed2
commit 01c5577cdd
2 changed files with 11 additions and 2 deletions

View File

@ -106,3 +106,11 @@ body {
.ios-web-app {
padding-top: 1em;
}
.comments {
padding-left: 0;
}
.comments li {
list-style-type: none;
}

View File

@ -1,10 +1,11 @@
- if a.comments.all.count == 0
There are no comments yet.
- else # TODO: some design guy (i.e. pixeldesu) should make some black magic here
%ul
%ul.comments
- a.comments.all.each do |comment|
%li{'data-comment-id' => comment.id}
#{user_screen_name comment.user}:
%img.img-answerbox-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}