Skip to content

A platform for community discussion. Free, open, simple.

UX: better help text for private invite-only instance

Arpit Jalan93eb0a0690fc
diff --git a/app/views/static/login.html.erb b/app/views/static/login.html.erb
index c08a7661b1e..19fa6ac0620 100644
--- a/app/views/static/login.html.erb
+++ b/app/views/static/login.html.erb
@@ -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 %>
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 8bff05ebf36..4e3f1224165 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -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"