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

Fixes #6974: Show contextual label for IP address role

This commit is contained in:
jeremystretch
2021-08-20 16:12:09 -04:00
parent 53a5bc2221
commit 1fc3c6d9d2
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* [#5968](https://github.com/netbox-community/netbox/issues/5968) - Model forms should save empty custom field values as null
* [#6686](https://github.com/netbox-community/netbox/issues/6686) - Force assignment of null custom field values to objects
* [#6974](https://github.com/netbox-community/netbox/issues/6974) - Show contextual label for IP address role
---

View File

@ -56,7 +56,7 @@
<td>Role</td>
<td>
{% if object.role %}
<a href="{% url 'ipam:ipaddress_list' %}?role={{ object.role }}">{{ object.get_role_display }}</a>
<a href="{% url 'ipam:ipaddress_list' %}?role={{ object.role }}" class="label label-{{ object.get_role_class }}">{{ object.get_role_display }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}