From 62cf4d40017d1a6bf99c7b2743d5361b50d710d0 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Thu, 22 Jul 2021 10:27:57 -0400 Subject: [PATCH] Clean up nav menu template --- .../templates/navigation/nav_items.html | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/netbox/utilities/templates/navigation/nav_items.html b/netbox/utilities/templates/navigation/nav_items.html index f03537278..11643b260 100644 --- a/netbox/utilities/templates/navigation/nav_items.html +++ b/netbox/utilities/templates/navigation/nav_items.html @@ -38,40 +38,22 @@ {{ item.link_text }} + {# Menu item buttons (if any) #} {% if item.buttons %}
- {% for button in item.buttons %} - {% if request.user|has_perms:button.permissions %} {% endif %} - {% endfor %} - -
- {% endif %} - - {# Add & Import Buttons #} - {% if item.has_add or item.has_import %} -
- {% if item.has_add %} - - - - {% endif %} - {% if item.has_import %} - - - - {% endif %}
{% endif %} {% else %} + {# Display a disabled link (no permission) #} {{ item.link_text }}