From a560efe1c0a14cdaf5234c777d49e7599ceafd3c Mon Sep 17 00:00:00 2001 From: Yuki Date: Wed, 27 May 2015 08:10:11 +0530 Subject: [PATCH] badumm tiss --- app/views/shared/_question_header.haml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/shared/_question_header.haml b/app/views/shared/_question_header.haml index 0680819b..5dcefad7 100644 --- a/app/views/shared/_question_header.haml +++ b/app/views/shared/_question_header.haml @@ -24,10 +24,8 @@ %i.fa.fa-exclamation-triangle = t 'views.actions.report' %h6.text-muted.media-heading.answerbox--question-user - = user_screen_name question.user, question.author_is_anonymous, !hidden - - unless hidden - asked - %span{title: question.created_at, data: { toggle: :tooltip, placement: :bottom }} - = time_ago_in_words(question.created_at) - ago + - if hidden + = user_screen_name question.user, question.author_is_anonymous, false + - else + = raw t('views.answerbox.asked', user: user_screen_name(question.user, question.author_is_anonymous), time: time_tooltip(question)) %p.answerbox--question-text= question.content