UX: better help text for private invite-only instance

This commit is contained in:
Arpit Jalan 2019-01-12 18:38:32 +05:30
parent 49593d1a00
commit 93eb0a0690
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<% if SiteSetting.login_required %> <% if SiteSetting.login_required %>
<div class='login-required'> <div class='login-required'>
<%= PrettyText.cook(I18n.t('login_required.welcome_message', title: SiteSetting.title)).html_safe %> <%= PrettyText.cook(I18n.t("login_required.#{SiteSetting.invite_only? ? "welcome_message_invite_only" : "welcome_message"}", title: SiteSetting.title)).html_safe %>
</div> </div>
<% end %> <% end %>

View File

@ -3347,6 +3347,9 @@ en:
welcome_message: | welcome_message: |
## [Welcome to %{title}](#welcome) ## [Welcome to %{title}](#welcome)
An account is required. Please create an account or log in to continue. An account is required. Please create an account or log in to continue.
welcome_message_invite_only: |
## [Welcome to %{title}](#welcome)
An account is required. Please ask an existing member for an invite or log in to continue.
terms_of_service: terms_of_service:
title: "Terms of Service" title: "Terms of Service"