diff --git a/taccsite_cms/settings/settings.py b/taccsite_cms/settings/settings.py index 2abb79537..fd2f46049 100644 --- a/taccsite_cms/settings/settings.py +++ b/taccsite_cms/settings/settings.py @@ -271,6 +271,8 @@ def gettext(s): return s ######################## PORTAL_IS_TACC_CORE_PORTAL = True +PORTAL_HOSTS_NAV = True +PORTAL_LOADS_NAV = True PORTAL_HAS_LOGIN = True PORTAL_HAS_SEARCH = True PORTAL_LOGIN_PATH = '/login' @@ -728,6 +730,8 @@ def get_subdirs_as_module_names(path): 'PORTAL_LOGO', 'PORTAL_FAVICON', 'PORTAL_IS_TACC_CORE_PORTAL', + 'PORTAL_HOSTS_NAV', + 'PORTAL_LOADS_NAV', 'PORTAL_HAS_LOGIN', 'PORTAL_LOGIN_PATH', 'PORTAL_HAS_SEARCH', diff --git a/taccsite_cms/settings/settings_local.example.py b/taccsite_cms/settings/settings_local.example.py index 87485e962..c904dff7a 100644 --- a/taccsite_cms/settings/settings_local.example.py +++ b/taccsite_cms/settings/settings_local.example.py @@ -31,4 +31,6 @@ # To disable the Core-Portal integration # IMPORTANT: Do not disable by default, because [Core-Portal clones this file](https://github.com/TACC/Core-Portal/pull/1034) # PORTAL_IS_TACC_CORE_PORTAL = False +# PORTAL_HOSTS_NAV = False +# PORTAL_LOADS_NAV = False # PORTAL_HAS_LOGIN = False diff --git a/taccsite_cms/templates/nav_portal.html b/taccsite_cms/templates/nav_portal.html index 2c05f85d5..7d428ef04 100644 --- a/taccsite_cms/templates/nav_portal.html +++ b/taccsite_cms/templates/nav_portal.html @@ -9,14 +9,17 @@ -{% if settings.PORTAL_IS_TACC_CORE_PORTAL %} - +{% endif %} +{% if settings.PORTAL_IS_TACC_CORE_PORTAL %} +