timestamps for comments and CSS fixes

This commit is contained in:
pixeldesu 2015-05-17 05:36:23 +02:00
parent c7cecba025
commit ab6983001e
3 changed files with 14 additions and 2 deletions

View file

@ -6,6 +6,10 @@
list-style-type: none;
}
.comments .pull-right {
margin-top: -13px;
}
.comments--box {
z-index: 99;
}
@ -24,6 +28,10 @@
word-break: normal;
}
.comments--content p {
margin-bottom: 0px;
}
.comments--media {
overflow: visible !important;
}

View file

@ -8,7 +8,9 @@
.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
%h6.media-heading.answerbox--question-user
= user_screen_name comment.user
%span.text-muted= "#{time_ago_in_words(comment.created_at)} ago"
- if comment.user == current_user
.pull-right
.btn-group

View file

@ -9,7 +9,9 @@
.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
%h6.media-heading.answerbox--question-user
= user_screen_name comment.user
%span.text-muted= "#{time_ago_in_words(comment.created_at)} ago"
.pull-right
%span.hidden-xs.text-muted
- unless user_signed_in?