diff --git a/templates/zerver/hello.html b/templates/zerver/hello.html index 3c03bc5a76..de13ea0104 100644 --- a/templates/zerver/hello.html +++ b/templates/zerver/hello.html @@ -26,7 +26,7 @@ {{ _('Finally, workplace chat that actually improves your productivity.*') }} {{ _("* It's also great for sharing cat pictures") }}. - {% if not_voyager %} + {% if register_link_disabled %} {% elif only_sso %} {{ _('Log in now!') }} {% else %} @@ -194,7 +194,7 @@
- {% if not_voyager %} + {% if register_link_disabled %} {% elif only_sso %} {% else %} diff --git a/templates/zerver/portico.html b/templates/zerver/portico.html index 2cdcf957bc..dfe9865371 100644 --- a/templates/zerver/portico.html +++ b/templates/zerver/portico.html @@ -62,7 +62,7 @@ {% if not only_sso %}
  • ยท
  • - {% if zulip_com %} + {% if register_link_disabled %} {% else %} {{ _('Register') }} {% endif %} diff --git a/zerver/context_processors.py b/zerver/context_processors.py index 8c7ed770f6..20858b1e7e 100644 --- a/zerver/context_processors.py +++ b/zerver/context_processors.py @@ -12,6 +12,7 @@ def add_settings(request): # to the template 'not_voyager': not settings.VOYAGER, 'zulip_com': settings.ZULIP_COM, + 'register_link_disabled': settings.REGISTER_LINK_DISABLED, 'show_oss_announcement': settings.SHOW_OSS_ANNOUNCEMENT, 'zulip_admin': settings.ZULIP_ADMINISTRATOR, 'login_url': settings.HOME_NOT_LOGGED_IN, diff --git a/zproject/local_settings.py b/zproject/local_settings.py index 70e05991be..42596694f6 100644 --- a/zproject/local_settings.py +++ b/zproject/local_settings.py @@ -30,6 +30,7 @@ if not ZULIP_COM: ZULIP_FRIENDS_LIST_ID = '84b2f3da6b' SHARE_THE_LOVE = True SHOW_OSS_ANNOUNCEMENT = True +REGISTER_LINK_DISABLED = True # This can be filled in automatically from the database, maybe DEPLOYMENT_ROLE_NAME = 'zulip.com' diff --git a/zproject/settings.py b/zproject/settings.py index 8f93699883..5dae207e11 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -147,6 +147,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '', 'EXTERNAL_URI_SCHEME': "https://", 'ZULIP_COM': False, 'SHOW_OSS_ANNOUNCEMENT': False, + 'REGISTER_LINK_DISABLED': False, 'STATSD_HOST': '', 'OPEN_REALM_CREATION': False, 'REMOTE_POSTGRES_HOST': '',