Просмотр исходного кода

Closes #5925: Always show IP addresses tab under prefix view

jeremystretch 4 лет назад
Родитель
Сommit
724997cb48
2 измененных файлов с 6 добавлено и 7 удалено
  1. 1 0
      docs/release-notes/version-3.0.md
  2. 5 7
      netbox/templates/ipam/prefix/base.html

+ 1 - 0
docs/release-notes/version-3.0.md

@@ -4,6 +4,7 @@
 
 ### Enhancements
 
+* [#5925](https://github.com/netbox-community/netbox/issues/5925) - Always show IP addresses tab under prefix view
 * [#6423](https://github.com/netbox-community/netbox/issues/6423) - Cache rendered REST API specifications
 * [#6708](https://github.com/netbox-community/netbox/issues/6708) - Add image attachment support for circuits, power panels
 * [#7387](https://github.com/netbox-community/netbox/issues/7387) - Enable arbitrary ordering of custom scripts

+ 5 - 7
netbox/templates/ipam/prefix/base.html

@@ -25,11 +25,9 @@
       Child Ranges {% badge object.get_child_ranges.count %}
     </a>
   </li>
-  {% if perms.ipam.view_ipaddress and object.status != 'container' %}
-    <li role="presentation" class="nav-item">
-      <a class="nav-link{% if active_tab == 'ip-addresses' %} active{% endif %}" href="{% url 'ipam:prefix_ipaddresses' pk=object.pk %}">
-        IP Addresses {% badge object.get_child_ips.count %}
-      </a>
-    </li>
-  {% endif %}
+  <li role="presentation" class="nav-item">
+    <a class="nav-link{% if active_tab == 'ip-addresses' %} active{% endif %}" href="{% url 'ipam:prefix_ipaddresses' pk=object.pk %}">
+      IP Addresses {% badge object.get_child_ips.count %}
+    </a>
+  </li>
 {% endblock %}