From fcdb7ff6c847829e6f71e9e04336aa0e3c7e93c0 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Wed, 8 Oct 2025 14:33:23 -0400 Subject: [PATCH 1/2] Remove HTMX navigation --- netbox/netbox/context_processors.py | 1 - netbox/netbox/preferences.py | 10 ------- netbox/templates/base/layout.html | 2 +- netbox/templates/inc/user_menu.html | 2 +- netbox/users/forms/model_forms.py | 3 +- .../utilities/templates/navigation/menu.html | 2 +- .../utilities/templatetags/builtins/tags.py | 7 ++--- netbox/utilities/templatetags/buttons.py | 2 -- netbox/utilities/templatetags/navigation.py | 28 ------------------- 9 files changed, 6 insertions(+), 51 deletions(-) diff --git a/netbox/netbox/context_processors.py b/netbox/netbox/context_processors.py index 3065855e6bd..199db9ee266 100644 --- a/netbox/netbox/context_processors.py +++ b/netbox/netbox/context_processors.py @@ -28,7 +28,6 @@ def preferences(request): user_preferences = request.user.config if request.user.is_authenticated else {} return { 'preferences': user_preferences, - 'htmx_navigation': user_preferences.get('ui.htmx_navigation', False) == 'true' } diff --git a/netbox/netbox/preferences.py b/netbox/netbox/preferences.py index d8fb130f4ac..49978b8c6f1 100644 --- a/netbox/netbox/preferences.py +++ b/netbox/netbox/preferences.py @@ -26,16 +26,6 @@ def get_csv_delimiters(): PREFERENCES = { # User interface - 'ui.htmx_navigation': UserPreference( - label=_('HTMX Navigation'), - choices=( - ('', _('Disabled')), - ('true', _('Enabled')), - ), - description=_('Enable dynamic UI navigation'), - default=False, - warning=_('Experimental feature') - ), 'locale.language': UserPreference( label=_('Language'), choices=( diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index c31896256c5..c305d1a7082 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -95,7 +95,7 @@

{# Page content #}
-
+
{# Page header #} {% block header %} diff --git a/netbox/templates/inc/user_menu.html b/netbox/templates/inc/user_menu.html index 50173ea562b..ecafc1f390f 100644 --- a/netbox/templates/inc/user_menu.html +++ b/netbox/templates/inc/user_menu.html @@ -33,7 +33,7 @@
-