Role tag letter color adjast to background in VM view. Fixes #4737

This commit is contained in:
LuPo 2020-06-09 21:24:50 +02:00
parent ed9ca270a7
commit b2061329c9

View File

@ -29,7 +29,7 @@ VIRTUALMACHINE_STATUS = """
""" """
VIRTUALMACHINE_ROLE = """ VIRTUALMACHINE_ROLE = """
{% if record.role %}<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}&mdash;{% endif %} {% if record.role %}{% load helpers %}<label class="label" style="color: {{ record.role.color|fgcolor }}; background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}&mdash;{% endif %}
""" """
VIRTUALMACHINE_PRIMARY_IP = """ VIRTUALMACHINE_PRIMARY_IP = """