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

Fix up missing table columns

This commit is contained in:
Jeremy Stretch
2020-10-16 16:33:08 -04:00
parent 51821818e0
commit 0a67926012
2 changed files with 35 additions and 11 deletions

View File

@@ -28,6 +28,16 @@ DEVICE_LINK = """
</a>
"""
DEVICEBAY_STATUS = """
{% if record.installed_device_id %}
<span class="label label-{{ record.installed_device.get_status_class }}">
{{ record.installed_device.get_status_display }}
</span>
{% else %}
<span class="label label-default">Vacant</span>
{% endif %}
"""
INTERFACE_IPADDRESSES = """
{% for ip in record.ip_addresses.unrestricted %}
<a href="{{ ip.get_absolute_url }}">{{ ip }}</a><br />