|
|
@@ -59,12 +59,16 @@
|
|
|
<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>
|
|
|
</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>
|
|
|
- </li>
|
|
|
- <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
|
|
- <a href="{% url 'ipam:prefix_changelog' pk=prefix.pk %}">Changelog</a>
|
|
|
- </li>
|
|
|
+ {% if perms.ipam.view_ipaddress %}
|
|
|
+ <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>
|
|
|
+ </li>
|
|
|
+ {% endif %}
|
|
|
+ {% if perms.extras.view_objectchange %}
|
|
|
+ <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
|
|
+ <a href="{% url 'ipam:prefix_changelog' pk=prefix.pk %}">Changelog</a>
|
|
|
+ </li>
|
|
|
+ {% endif %}
|
|
|
</ul>
|
|
|
{% endblock %}
|
|
|
|