diff --git a/app/views/inbox/show.html.haml b/app/views/inbox/show.html.haml index 23825882..8f5ae0fa 100644 --- a/app/views/inbox/show.html.haml +++ b/app/views/inbox/show.html.haml @@ -8,7 +8,11 @@ %a.pull-left{href: show_user_profile_path(i.question.user.screen_name)} %img.img-rounded.img-answerbox{src: gravatar_url(i.question.user)} .media-body - %h6.text-muted.media-heading.answerbox-question-user= user_screen_name i.question.user, i.question.author_is_anonymous + %h6.text-muted.media-heading.answerbox-question-user + = user_screen_name i.question.user, i.question.author_is_anonymous + asked + = time_ago_in_words(i.question.created_at) + ago %p.answerbox-question-text= i.question.content %p.timestamp asked diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 01701876..ede110b5 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -5,7 +5,11 @@ %a.pull-left{href: show_user_profile_path(a.question.user.screen_name)} %img.img-rounded.img-answerbox{src: gravatar_url(a.question.user)} .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 + asked + = time_ago_in_words(a.question.created_at) + ago %p.answerbox-question-text= a.question.content .panel-body %p= a.content