limits vlans on interface tables

This commit is contained in:
Thor Dreier-Hansen 2024-10-03 16:23:42 +02:00
parent 9495964987
commit c74fc2c6a5
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ INTERFACE_FHRPGROUPS = """
INTERFACE_TAGGED_VLANS = """
{% if record.mode == 'tagged' %}
{% if value.count > 3 %}
<a href="{{ record.get_absolute_url }}#vlans">{{ value.count }}</a>
<a href="{% url 'ipam:vlan_list' %}?{{ record|meta:"model_name" }}_id={{ record.pk }}">{{ value.count }}</a>
{% else %}
{% for vlan in value.all %}
<a href="{{ vlan.get_absolute_url }}">{{ vlan }}</a><br />

View File

@ -351,7 +351,7 @@
</div>
</div>
<div class="row mb-3">
<div class="col col-md-12" id="vlans">
<div class="col col-md-12">
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
</div>
</div>

View File

@ -96,7 +96,7 @@
</div>
</div>
<div class="row mb-3">
<div class="col col-md-12" id="vlans">
<div class="col col-md-12">
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
</div>
</div>