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

Fixes #5648: Include VC member interfaces on interfaces tab count when viewing VC master

This commit is contained in:
Jeremy Stretch
2021-01-25 14:29:03 -05:00
parent 87c600aa7c
commit 137aa9da2c
2 changed files with 2 additions and 1 deletions

View File

@@ -90,7 +90,7 @@
<li role="presentation" {% if active_tab == 'device' %} class="active"{% endif %}>
<a href="{% url 'dcim:device' pk=object.pk %}">Device</a>
</li>
{% with interface_count=object.interfaces.count %}
{% with interface_count=object.vc_interfaces.count %}
{% if interface_count %}
<li role="presentation" {% if active_tab == 'interfaces' %} class="active"{% endif %}>
<a href="{% url 'dcim:device_interfaces' pk=object.pk %}">Interfaces {% badge interface_count %}</a>