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

Hardcode cable status colours

This commit is contained in:
Per von Zweigbergk
2024-01-23 20:58:10 +01:00
parent da7f67c359
commit bf362f4679
2 changed files with 9 additions and 7 deletions

View File

@@ -34,11 +34,15 @@
{% block head %}
{{ block.super }}
<style>
{% for status, color in table.Meta.cable_status_styles %}
tr[data-cable-status={{ status }}] {
background-color: var(--nbx-color-{{ color }}-a15);
}
{% endfor %}
tr[data-cable-status=connected] {
background-color: var(--nbx-color-green-a15);
}
tr[data-cable-status=planned] {
background-color: var(--nbx-color-blue-a15);
}
tr[data-cable-status=decommissioning] {
background-color: var(--nbx-color-yellow-a15);
}
tr[data-mark-connected=true] {
background-color: var(--nbx-color-success-a15);
}