mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #1845: Correct display of VMs in list with no role assigned
This commit is contained in:
@ -24,7 +24,7 @@ VIRTUALMACHINE_STATUS = """
|
||||
"""
|
||||
|
||||
VIRTUALMACHINE_ROLE = """
|
||||
<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>
|
||||
{% if record.role %}<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}—{% endif %}
|
||||
"""
|
||||
|
||||
VIRTUALMACHINE_PRIMARY_IP = """
|
||||
|
Reference in New Issue
Block a user