Show question link for answered questions with only one answer

Closes #43
This commit is contained in:
Karina Kwiatek 2021-08-11 14:44:41 +02:00
parent 11e8555dae
commit 5e7042ad6c
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
View in Kontrollzentrum View in Kontrollzentrum
%h6.text-muted.media-heading.answerbox__question-user %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)) = 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) } %a{ href: show_user_question_path(a.question.user.screen_name, a.question.id) }
= pluralize(a.question.answer_count, t('views.general.answer')) = pluralize(a.question.answer_count, t('views.general.answer'))