From cdbf1950a66772a5670c0afa6b1477b57cd0a8b2 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 5 Jan 2024 11:20:16 -0500 Subject: [PATCH] Fix badge background colors in table content --- netbox/dcim/tables/template_code.py | 8 ++++---- netbox/ipam/tables/ip.py | 2 +- netbox/ipam/tables/vlans.py | 2 +- netbox/netbox/tables/template_code.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 1862893ff..f78908218 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -21,16 +21,16 @@ WEIGHT = """ """ DEVICE_LINK = """ -{{ value|default:'Unnamed device' }} +{{ value|default:'Unnamed device' }} """ DEVICEBAY_STATUS = """ {% if record.installed_device_id %} - + {{ record.installed_device.get_status_display }} {% else %} - Vacant + Vacant {% endif %} """ @@ -38,7 +38,7 @@ INTERFACE_IPADDRESSES = """
{% for ip in value.all %} {% if ip.status != 'active' %} - {{ ip }} + {{ ip }} {% else %} {{ ip }} {% endif %} diff --git a/netbox/ipam/tables/ip.py b/netbox/ipam/tables/ip.py index 3b50b257d..9e940ae9e 100644 --- a/netbox/ipam/tables/ip.py +++ b/netbox/ipam/tables/ip.py @@ -18,7 +18,7 @@ __all__ = ( 'RoleTable', ) -AVAILABLE_LABEL = mark_safe('Available') +AVAILABLE_LABEL = mark_safe('Available') AGGREGATE_COPY_BUTTON = """ {% copy_content record.pk prefix="aggregate_" %} diff --git a/netbox/ipam/tables/vlans.py b/netbox/ipam/tables/vlans.py index aee91e7d8..11de0381c 100644 --- a/netbox/ipam/tables/vlans.py +++ b/netbox/ipam/tables/vlans.py @@ -18,7 +18,7 @@ __all__ = ( 'VLANVirtualMachinesTable', ) -AVAILABLE_LABEL = mark_safe('Available') +AVAILABLE_LABEL = mark_safe('Available') VLAN_LINK = """ {% if record.pk %} diff --git a/netbox/netbox/tables/template_code.py b/netbox/netbox/tables/template_code.py index 60bfda0c9..aaa5429ff 100644 --- a/netbox/netbox/tables/template_code.py +++ b/netbox/netbox/tables/template_code.py @@ -1,6 +1,6 @@ SEARCH_RESULT_ATTRS = """ {% for name, value in record.display_attrs.items %} - 40 %} data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ value }}"{% endif %} > {{ name|bettertitle }}: