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

Closes #1303: Highlight installed interface connections in green on device view

This commit is contained in:
Jeremy Stretch
2017-06-29 13:35:54 -04:00
parent 97b67d0f93
commit cd5a86bfcf

View File

@ -1,4 +1,4 @@
<tr class="interface{% if iface.connection and not iface.connection.connection_status %} info{% endif %}"> <tr class="interface{% if iface.connection and iface.connection.connection_status %} success{% elif iface.connection and not iface.connection.connection_status %} info{% endif %}">
{% if selectable and perms.dcim.change_interface or perms.dcim.delete_interface %} {% if selectable and perms.dcim.change_interface or perms.dcim.delete_interface %}
<td class="pk"> <td class="pk">
<input name="pk" type="checkbox" value="{{ iface.pk }}" /> <input name="pk" type="checkbox" value="{{ iface.pk }}" />