diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-07-30 12:01:59 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-30 13:01:36 +0200 |
commit | 95c113f0674bda60cce7f1cc82ec1bf2777ed170 (patch) | |
tree | fb9dc6972cdd5f9799fed0e2588f31291fe6e297 /ogcp | |
parent | df25ec62a863d05f5c16584cd1344011a3d66a0f (diff) |
Fix scopes tree draw on empty centers/rooms
Otherwise, ogcp draws empty centers and rooms as computers, with the
state circle.
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/templates/macros.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index 09326b5..d927b9f 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -47,7 +47,7 @@ {% endif %} <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"] %} + {% if "state" in scope %} <i class="nav-icon fa-circle {% if scope['state'] == 'OPG' %}fas text-warning {% elif scope['state'] == 'BSY' %}fas text-danger |