From 4f777968e529ee4259c9b4f36be931175dfada8a Mon Sep 17 00:00:00 2001 From: Andreas N Date: Thu, 25 Dec 2014 14:26:35 +0100 Subject: [PATCH] readded links to questions on user profile --- app/views/shared/_answerbox.html.haml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 791f7e7f..54bcfcae 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -8,9 +8,15 @@ .media-body %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 + - if @user.nil? + asked + = time_ago_in_words(a.question.created_at) + ago + - else + asked + %a{href: show_user_question_path(a.question.user.screen_name, a.question.id)} + = time_ago_in_words(a.question.created_at) + ago - unless a.question.author_is_anonymous - if a.question.answer_count > 1 ยท