summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r--ogcp/templates/macros.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 93c7380..09326b5 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -38,10 +38,7 @@
{% macro scopes_tree_collapse_level(scopes, i) -%}
{% for scope in scopes %}
- <li
- id="{{ scope["name"] }}_{{ scope["id"] }}"
- class="nav-item {% if scope["state"] %}state--{{scope["state"] | lower}}{% endif %}"
- >
+ <li id="{{ scope["name"] }}_{{ scope["id"] }}" class="nav-item">
{% if " ".join(scope["ip"]) %}
<input class="form-check-input" type="checkbox" form="scopesForm"
value="{{ " ".join(scope["ip"]) }}"
@@ -51,7 +48,12 @@
<a class="nav-link {% if not scope["scope"] %}disabled{% endif %}" href="#level{{i}}-{{loop.index}}"
{% if scope["scope"] %}data-toggle="collapse"{% endif %}>
{% if not scope["scope"] %}
- <i class="nav-icon fa-circle {% if scope['state'] == 'on' %}fas text-success{% else %}far text-danger{% endif %}"></i>
+ <i class="nav-icon fa-circle
+ {% if scope['state'] == 'OPG' %}fas text-warning
+ {% elif scope['state'] == 'BSY' %}fas text-danger
+ {% elif scope['state'] == 'VDI' %}fas text-success
+ {% elif scope['state'] == 'WOL_SENT' %}fas text-wol
+ {% else %}far{% endif %}"></i>
{% endif %}
{{ scope["name"] }}
</a>