mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:29:53 +01:00
Add block identifiers to questionbox
This commit is contained in:
parent
c13cb9bb1b
commit
e4603ff852
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue