mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
Role tag letter color adjast to background in VM view. Fixes #4737
This commit is contained in:
parent
ed9ca270a7
commit
b2061329c9
@ -29,7 +29,7 @@ VIRTUALMACHINE_STATUS = """
|
||||
"""
|
||||
|
||||
VIRTUALMACHINE_ROLE = """
|
||||
{% if record.role %}<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}—{% endif %}
|
||||
{% if record.role %}{% load helpers %}<label class="label" style="color: {{ record.role.color|fgcolor }}; background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}—{% endif %}
|
||||
"""
|
||||
|
||||
VIRTUALMACHINE_PRIMARY_IP = """
|
||||
|
Loading…
Reference in New Issue
Block a user