mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
Fixes #15059: Correct IP address count link in VM interfaces table
This commit is contained in:
parent
01fa2710eb
commit
2d70b50286
@ -37,7 +37,7 @@ DEVICEBAY_STATUS = """
|
|||||||
INTERFACE_IPADDRESSES = """
|
INTERFACE_IPADDRESSES = """
|
||||||
<div class="table-badge-group">
|
<div class="table-badge-group">
|
||||||
{% if value.count >= 3 %}
|
{% if value.count >= 3 %}
|
||||||
<a href="{% url 'ipam:ipaddress_list' %}?interface_id={{ record.pk }}">{{ value.count }}</a>
|
<a href="{% url 'ipam:ipaddress_list' %}?{{ record|meta:"model_name" }}_id={{ record.pk }}">{{ value.count }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for ip in value.all %}
|
{% for ip in value.all %}
|
||||||
{% if ip.status != 'active' %}
|
{% if ip.status != 'active' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user