Add block identifiers to questionbox

This commit is contained in:
Andreas Nedbal 2022-06-13 22:48:40 +02:00 committed by Karina Kwiatek
parent c13cb9bb1b
commit e4603ff852
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,12 @@
- if user.banned?
.text-center
%strong= t(".status.banned")
- elsif user_signed_in? && current_user.blocking?(user)
.text-center
%strong= t(".status.blocking")
- elsif user_signed_in? && user.blocking?(current_user)
.text-center
%strong= t(".status.blocked")
- else
- if user_signed_in? || user.privacy_allow_anonymous_questions?
#question-box

View File

@ -26,6 +26,8 @@ en:
join: "Join %{app_title} today! You'll be able to follow and ask people you know and a lot more."
status:
banned: "This user got hit with ye olde banhammer."
blocking: "You are blocking this user."
blocked: "This user has blocked you."
devise:
registrations:
edit: