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

@@ -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 %}