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

26 lines
829 B
HTML
Raw Normal View History

2021-07-16 09:15:19 -04:00
{% extends 'generic/object.html' %}
{% load buttons %}
{% load helpers %}
{% block breadcrumbs %}
2021-07-20 12:14:01 -04:00
{{ block.super }}
2021-07-16 09:15:19 -04:00
{% if object.vrf %}
2021-07-20 12:14:01 -04:00
<li class="breadcrumb-item"><a href="{% url 'ipam:iprange_list' %}?vrf_id={{ object.vrf.pk }}">{{ object.vrf }}</a></li>
2021-07-16 09:15:19 -04:00
{% endif %}
{% endblock %}
{% block tab_items %}
<li role="presentation" class="nav-item">
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">
IP Range
</a>
</li>
{% if perms.ipam.view_ipaddress %}
<li role="presentation" class="nav-item">
<a class="nav-link{% if active_tab == 'ip-addresses' %} active{% endif %}" href="{% url 'ipam:iprange_ipaddresses' pk=object.pk %}">
IP Addresses {% badge object.get_child_ips.count %}
2021-07-16 09:15:19 -04:00
</a>
</li>
{% endif %}
{% endblock %}