diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html index e9d7fcdf9..8bc2cd372 100644 --- a/netbox/templates/base/base.html +++ b/netbox/templates/base/base.html @@ -5,38 +5,20 @@ - + {# Page title #} {% block title %}{% trans "Home" %}{% endblock %} | NetBox - - @@ -72,32 +54,6 @@ - {# Page layout #} {% block layout %}{% endblock %} diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index bb3bbc0e1..1d0f29b6f 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -1,6 +1,7 @@ {# Base layout for the core NetBox UI w/navbar and page content #} {% extends 'base/base.html' %} {% load helpers %} +{% load navigation %} {% load static %} {% load i18n %} @@ -14,96 +15,151 @@ Blocks: {% block layout %} -
-
+
+ {# Sidebar #} - {% include 'base/sidenav.html' %} + - {# Mobile Navigation #} -
{% endblock layout %} diff --git a/netbox/templates/base/sidenav.html b/netbox/templates/base/sidenav.html deleted file mode 100644 index 2743ea058..000000000 --- a/netbox/templates/base/sidenav.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load navigation %} -{% load static %} -{% load i18n %} - - diff --git a/netbox/templates/inc/profile_button.html b/netbox/templates/inc/profile_button.html index 8187c773a..bebac1f63 100644 --- a/netbox/templates/inc/profile_button.html +++ b/netbox/templates/inc/profile_button.html @@ -1,67 +1,42 @@ {% load i18n %} + {% if request.user.is_authenticated %} - {% else %}
{% trans "Log In" %} - -
{% endif %} diff --git a/netbox/templates/inc/searchbar.html b/netbox/templates/inc/searchbar.html deleted file mode 100644 index c8ef0d548..000000000 --- a/netbox/templates/inc/searchbar.html +++ /dev/null @@ -1,6 +0,0 @@ -
- - -
diff --git a/netbox/utilities/templates/navigation/menu.html b/netbox/utilities/templates/navigation/menu.html index f7e3f3dcb..c4da0478c 100644 --- a/netbox/utilities/templates/navigation/menu.html +++ b/netbox/utilities/templates/navigation/menu.html @@ -1,43 +1,37 @@ {% load helpers %} -