diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index ec80c40cbbb..6bcdd0e7974 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -58,8 +58,48 @@

+ {# User menu #} - {% include 'inc/user_menu.html' %} + {% if request.user.is_authenticated %} + + {% else %} +
+ + {% trans "Log In" %} + +
+ {% endif %} + {# /User menu #} {# Search box #} @@ -79,7 +119,7 @@

{# Page content #}
-
+
{# Page header #} {% block header %} diff --git a/netbox/templates/inc/user_menu.html b/netbox/templates/inc/user_menu.html deleted file mode 100644 index 95bc639c0fb..00000000000 --- a/netbox/templates/inc/user_menu.html +++ /dev/null @@ -1,41 +0,0 @@ -{% load i18n %} - -{% if request.user.is_authenticated %} - -{% else %} - -{% endif %} diff --git a/netbox/utilities/templates/navigation/menu.html b/netbox/utilities/templates/navigation/menu.html index f32e3d6780e..6f902bc2008 100644 --- a/netbox/utilities/templates/navigation/menu.html +++ b/netbox/utilities/templates/navigation/menu.html @@ -1,6 +1,7 @@ {% load helpers %} +{% load navigation %} -