Add no sign-up locale variant for "require user" option
This commit is contained in:
parent
f19f7c9da5
commit
1e267c8031
|
@ -19,9 +19,13 @@
|
||||||
%strong= t(".status.locked")
|
%strong= t(".status.locked")
|
||||||
- elsif !user_signed_in? && user.privacy_require_user?
|
- elsif !user_signed_in? && user.privacy_require_user?
|
||||||
.text-center
|
.text-center
|
||||||
%strong= t(".status.require_user_html",
|
- if Retrospring::Config.registrations_enabled?
|
||||||
sign_in: link_to(t("voc.login"), new_user_session_path),
|
%strong= t(".status.require_user_html",
|
||||||
sign_up: link_to(t("voc.register"), new_user_registration_path))
|
sign_in: link_to(t("voc.login"), new_user_session_path),
|
||||||
|
sign_up: link_to(t("voc.register"), new_user_registration_path))
|
||||||
|
- else
|
||||||
|
%strong= t(".status.require_user_no_registration_html",
|
||||||
|
sign_in: link_to(t("voc.login"), new_user_session_path))
|
||||||
- else
|
- else
|
||||||
- if user_signed_in? || user.privacy_allow_anonymous_questions?
|
- if user_signed_in? || user.privacy_allow_anonymous_questions?
|
||||||
#question-box{
|
#question-box{
|
||||||
|
|
|
@ -143,6 +143,9 @@ en:
|
||||||
require_user_html: |
|
require_user_html: |
|
||||||
This user requires others to be logged in to ask questions. <br/>
|
This user requires others to be logged in to ask questions. <br/>
|
||||||
(%{sign_in} or %{sign_up})
|
(%{sign_in} or %{sign_up})
|
||||||
|
require_user_no_registration_html: |
|
||||||
|
This user requires others to be logged in to ask questions. <br/>
|
||||||
|
(%{sign_in})
|
||||||
non_anonymous_html: |
|
non_anonymous_html: |
|
||||||
This user does not want to receive anonymous questions. <br/>
|
This user does not want to receive anonymous questions. <br/>
|
||||||
(%{sign_in} or %{sign_up})
|
(%{sign_in} or %{sign_up})
|
||||||
|
|
Loading…
Reference in New Issue