timestamp

This commit is contained in:
pixeldesu 2014-11-30 20:45:21 +01:00
parent f1d93646a2
commit e20037a89a
1 changed files with 4 additions and 7 deletions

View File

@ -7,16 +7,11 @@
.media-body .media-body
%h6.text-muted.media-heading.answerbox-question-user= user_screen_name a.question.user, a.question.author_is_anonymous %h6.text-muted.media-heading.answerbox-question-user= user_screen_name a.question.user, a.question.author_is_anonymous
%p.answerbox-question-text= a.question.content %p.answerbox-question-text= a.question.content
/ TODO: Andreas, mach was draus: .pull-right.text-muted
.timestamp %i.fa.fa-clock-o
= time_ago_in_words(a.question.created_at) = time_ago_in_words(a.question.created_at)
ago
.panel-body .panel-body
%p= a.content %p= a.content
/ TODO: Andreas, mach was draus:
.timestamp
= time_ago_in_words(a.created_at)
ago
- if @user.nil? - if @user.nil?
.row .row
.col-md-6.col-sm-4.col-xs-7.text-left.text-muted .col-md-6.col-sm-4.col-xs-7.text-left.text-muted
@ -24,6 +19,8 @@
%a{href: show_user_profile_path(a.user.screen_name)} %a{href: show_user_profile_path(a.user.screen_name)}
%img.img-rounded.img-answerbox-small{src: gravatar_url(a.user)} %img.img-rounded.img-answerbox-small{src: gravatar_url(a.user)}
%span= a.user.screen_name %span= a.user.screen_name
%span= = time_ago_in_words(a.created_at)
ago
.col-md-6.col-sm-8.col-xs-5.text-right .col-md-6.col-sm-8.col-xs-5.text-right
%span.hidden-xs.text-muted %span.hidden-xs.text-muted
%span{id: "ab-smile-count-#{a.id}"}= a.smile_count %span{id: "ab-smile-count-#{a.id}"}= a.smile_count