From 5e7042ad6ce8076a6c40d366f5f1116db91d8d90 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 11 Aug 2021 14:44:41 +0200 Subject: [PATCH] Show question link for answered questions with only one answer Closes #43 --- app/views/answerbox/_header.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/answerbox/_header.haml b/app/views/answerbox/_header.haml index b33387eb..e330a7a8 100644 --- a/app/views/answerbox/_header.haml +++ b/app/views/answerbox/_header.haml @@ -24,7 +24,7 @@ View in Kontrollzentrum %h6.text-muted.media-heading.answerbox__question-user = raw t('views.answerbox.asked', user: user_screen_name(a.question.user, anonymous: a.question.author_is_anonymous), time: time_tooltip(a.question)) - - if !a.question.author_is_anonymous && a.question.answer_count > 1 + - unless a.question.author_is_anonymous ยท %a{ href: show_user_question_path(a.question.user.screen_name, a.question.id) } = pluralize(a.question.answer_count, t('views.general.answer'))