From ba9b6d1e1288afee205168f37a4a9cf6a2bb441b Mon Sep 17 00:00:00 2001 From: Andreas N Date: Sat, 20 Dec 2014 02:14:27 +0100 Subject: [PATCH] add link to question/answer in question display --- app/views/shared/_question.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_question.html.haml b/app/views/shared/_question.html.haml index f1d6100e..d2b79ee3 100644 --- a/app/views/shared/_question.html.haml +++ b/app/views/shared/_question.html.haml @@ -5,8 +5,9 @@ %h6.media-heading.text-muted.answerbox--question-user = user_screen_name q.user asked - = time_ago_in_words(q.created_at) - ago + %a{href: show_user_question_path(q.user.screen_name, q.id)} + = time_ago_in_words(q.created_at) + ago - if q.answer_count > 1 ยท %a{href: show_user_question_path(q.user.screen_name, q.id)}