mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
Preserve show_available='on' between tabs in the Prefix view
This commit is contained in:
parent
54f3b35b4d
commit
58f56f2deb
@ -60,16 +60,16 @@
|
||||
</div>
|
||||
<ul class="nav nav-tabs" style="margin-bottom: 20px">
|
||||
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
||||
<a href="{% url 'ipam:prefix' pk=prefix.pk %}">Prefix</a>
|
||||
<a href="{% url 'ipam:prefix' pk=prefix.pk %}{% if request.GET.show_available %}{% querystring request show_available='on' %}{% endif %}">Prefix</a>
|
||||
</li>
|
||||
<li role="presentation"{% if active_tab == 'prefixes' %} class="active"{% endif %}>
|
||||
<a href="{% url 'ipam:prefix_prefixes' pk=prefix.pk %}">Child Prefixes <span class="badge">{{ prefix.get_child_prefixes.count }}</span></a>
|
||||
<a href="{% url 'ipam:prefix_prefixes' pk=prefix.pk %}{% if request.GET.show_available %}{% querystring request show_available='on' %}{% endif %}">Child Prefixes <span class="badge">{{ prefix.get_child_prefixes.count }}</span></a>
|
||||
</li>
|
||||
<li role="presentation"{% if active_tab == 'ip-addresses' %} class="active"{% endif %}>
|
||||
<a href="{% url 'ipam:prefix_ipaddresses' pk=prefix.pk %}">IP Addresses <span class="badge">{{ prefix.get_child_ips.count }}</span></a>
|
||||
<a href="{% url 'ipam:prefix_ipaddresses' pk=prefix.pk %}{% if request.GET.show_available %}{% querystring request show_available='on' %}{% endif %}">IP Addresses <span class="badge">{{ prefix.get_child_ips.count }}</span></a>
|
||||
</li>
|
||||
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
||||
<a href="{% url 'ipam:prefix_changelog' pk=prefix.pk %}">Changelog</a>
|
||||
<a href="{% url 'ipam:prefix_changelog' pk=prefix.pk %}{% if request.GET.show_available %}{% querystring request show_available='on' %}{% endif %}">Changelog</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user