diff --git a/app/views/answerbox/_header.haml b/app/views/answerbox/_header.haml index c9d05d1c..0889528d 100644 --- a/app/views/answerbox/_header.haml +++ b/app/views/answerbox/_header.haml @@ -23,6 +23,8 @@ %i.fa.fa-gears 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' } = 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 5aa0c64c..32d2be00 100644 --- a/app/views/inbox/_entry.haml +++ b/app/views/inbox/_entry.haml @@ -6,6 +6,8 @@ %img.answerbox__question-user-avatar.avatar-md{ src: i.question.user.profile_picture.url(:medium) } .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' } = 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? ·