Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Skip footer and adjust header on invalid realm.
Alex Vandiver631a1def136c
diff --git a/templates/zerver/portico.html b/templates/zerver/portico.htmlindex 0145459cee7..ef2433022b6 100644--- a/templates/zerver/portico.html+++ b/templates/zerver/portico.html@@ -21,7 +21,7 @@ hence the name.</div></div><div class="alert-box"></div>- {% if not isolated_page %}+ {% if not isolated_page and not skip_footer %}{% include 'zerver/footer.html' %}{% endif %}</div>diff --git a/zerver/context_processors.py b/zerver/context_processors.pyindex 0a4594c93f1..19403bf73fb 100644--- a/zerver/context_processors.py+++ b/zerver/context_processors.py@@ -107,6 +107,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:realm_name = realm.namerealm_icon = get_realm_icon_url(realm)+ skip_footer = Falseregister_link_disabled = settings.REGISTER_LINK_DISABLEDlogin_link_disabled = settings.LOGIN_LINK_DISABLEDfind_team_link_disabled = settings.FIND_TEAM_LINK_DISABLED@@ -120,6 +121,11 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:login_link_disabled = Truefind_team_link_disabled = Falseallow_search_engine_indexing = True+ elif realm is None:+ register_link_disabled = True+ login_link_disabled = True+ find_team_link_disabled = False+ skip_footer = Trueapps_page_web = settings.ROOT_DOMAIN_URI + "/accounts/go/"@@ -186,6 +192,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:"allow_search_engine_indexing": allow_search_engine_indexing,"landing_page_navbar_message": settings.LANDING_PAGE_NAVBAR_MESSAGE,"is_isolated_page": is_isolated_page(request),+ "skip_footer": skip_footer,"default_page_params": default_page_params,"corporate_enabled": corporate_enabled,}