From 7eb4029ac9fc70bcedb2bd95b2832e19456f9651 Mon Sep 17 00:00:00 2001 From: Tobias O Date: Tue, 4 Nov 2025 19:34:04 +1300 Subject: [PATCH] refactor: add public_mode for static pages to remove nav elements --- envipath/settings.py | 8 ++++++++ templates/framework_modern.html | 2 ++ templates/includes/navbar.html | 16 +++++++++++++--- templates/static/{jobs.html => careers.html} | 0 4 files changed, 23 insertions(+), 3 deletions(-) rename templates/static/{jobs.html => careers.html} (100%) diff --git a/envipath/settings.py b/envipath/settings.py index 26703b5c..7fe4c3af 100644 --- a/envipath/settings.py +++ b/envipath/settings.py @@ -350,6 +350,14 @@ LOGIN_EXEMPT_URLS = [ "/password_reset/", "/reset/", "/microsoft/", + "/terms", + "/privacy", + "/cookie-policy", + "/about", + "/contact", + "/jobs", + "/cite", + "/legal", ] # MS AD/Entra diff --git a/templates/framework_modern.html b/templates/framework_modern.html index c079b812..4e7839b8 100644 --- a/templates/framework_modern.html +++ b/templates/framework_modern.html @@ -118,6 +118,7 @@ {% include "includes/footer.html" %} {# Floating Help Tab #} + {% if not public_mode %}
+ {% endif %} {# Modals - TODO: Convert these to DaisyUI modals #} {% block modals %} diff --git a/templates/includes/navbar.html b/templates/includes/navbar.html index 649a4734..6b79815b 100644 --- a/templates/includes/navbar.html +++ b/templates/includes/navbar.html @@ -9,6 +9,7 @@ + {% if not public_mode %} + {% endif %}