diff --git a/app/views/answerbox/_header.haml b/app/views/answerbox/_header.haml index 0889528d..7fcffff1 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 - if a.question.author_is_anonymous - %i.fa.fa-user-secret{ title: 'This question was asked anonymously' } + %i.fa.fa-user-secret{ title: t('.anon_hint') } = raw t('views.answerbox.asked', user: user_screen_name(a.question.user, context_user: a.user, anonymous: a.question.author_is_anonymous), time: time_tooltip(a.question)) - if !a.question.author_is_anonymous && !a.question.direct · diff --git a/app/views/inbox/_entry.haml b/app/views/inbox/_entry.haml index 32d2be00..3ae427b1 100644 --- a/app/views/inbox/_entry.haml +++ b/app/views/inbox/_entry.haml @@ -7,7 +7,7 @@ .media-body %h6.text-muted.media-heading.answerbox__question-user - if i.question.author_is_anonymous - %i.fa.fa-user-secret{ title: 'This question was asked anonymously' } + %i.fa.fa-user-secret{ title: t('.anon_hint') } = t(".asked_html", user: user_screen_name(i.question.user, context_user: i.user, anonymous: i.question.author_is_anonymous), time: time_tooltip(i.question)) - if !i.question.author_is_anonymous && i.question.answer_count.positive? · diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 54dff1cd..c70f0f97 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -12,6 +12,9 @@ en: title: "Create Announcement" edit: title: "Edit Announcement" + answerbox: + header: + anon_hint: :inbox.entry.anon_hint application: questionbox: title: "Ask something!" @@ -48,6 +51,7 @@ en: inbox: entry: asked_html: "%{user} asked %{time} ago" + anon_hint: "This question was asked anonymously." answers: one: "1 answer" other: "%{count} answers"