Add icon for anonymous questions
This commit is contained in:
parent
1142b68d68
commit
a2937a60e9
|
@ -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
|
||||
·
|
||||
|
|
|
@ -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?
|
||||
·
|
||||
|
|
Loading…
Reference in New Issue