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 %>
<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>
<% end %>

View File

@ -3347,6 +3347,9 @@ en:
welcome_message: |
## [Welcome to %{title}](#welcome)
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:
title: "Terms of Service"