1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Replace active_tab context for object views

This commit is contained in:
jeremystretch
2022-10-07 12:14:19 -04:00
parent bfe26b46a6
commit 5e1a0733e4
11 changed files with 22 additions and 76 deletions

View File

@@ -81,7 +81,7 @@ Context:
<ul class="nav nav-tabs px-3">
{# Primary tab #}
<li class="nav-item" role="presentation">
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
<a class="nav-link{% if not tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
</li>
{# Include any extra tabs passed by the view #}