Add icon for anonymous questions

This commit is contained in:
Karina Kwiatek 2022-06-21 18:18:09 +02:00 committed by Karina Kwiatek
parent 1142b68d68
commit a2937a60e9
2 changed files with 4 additions and 0 deletions

View File

@ -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
·

View File

@ -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?
·