diff --git a/templates/dashboard.html b/templates/dashboard.html index d9e55ec..6c704b3 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -2,82 +2,99 @@ {% block title %}Dashboard - Busylight{% endblock %} {% block content %} -
-
Dashboard
+
+

Dashboard

-
- +
{% if not authenticated %} -
- Azure nicht verbunden. - Einstellungen pruefen. +
+ + Azure ist nicht verbunden. Bitte unter Einstellungen konfigurieren und + python app.py --auth ausfuehren.
{% endif %} {% if devices %} -
+
{% for device in devices %} -
+
-
-
- {{ device.name }} +
+
+ {{ device.name }} + {{ device.hostname }}
+
+
{% for seg in device.segments|reverse %} - {% if seg.user %} - {% if seg.aida == '-' and seg.teams == '-' %} -
- {{ seg.user }} - -
- {% else %} -
- {{ seg.user }} -
+
+ Segment {{ seg.index }} + {% if seg.user %} + {% if seg.aida == '-' and seg.teams == '-' %} +
+ + {{ seg.user }} +
+ Warte auf Status... + {% else %} +
+ + {{ seg.user }} +
+
{% if seg.aida == 'anwesend' %} - Buero + Anwesend {% elif seg.aida == 'abwesend' %} - Weg + Abwesend {% elif seg.aida == 'homeoffice' %} - HO + Homeoffice + {% else %} + {{ seg.aida }} {% endif %} {% if seg.teams != '-' %} {% if 'available' in seg.teams %} - Frei + Verfuegbar {% elif 'busy' in seg.teams or 'inacall' in seg.teams or 'inameeting' in seg.teams %} - Besetzt + Beschaeftigt {% elif 'donotdisturb' in seg.teams %} - DND + Nicht stoeren {% elif 'away' in seg.teams or 'berightback' in seg.teams %} - Weg + Abwesend + {% elif 'offline' in seg.teams %} + Offline {% elif 'presenting' in seg.teams %} - Praes. - {% elif 'offline' in seg.teams or 'inactive' in seg.teams or 'offwork' in seg.teams %} - Off + Praesentiert {% elif 'outofoffice' in seg.teams %} - OoO + Nicht im Buero + {% elif 'inactive' in seg.teams or 'offwork' in seg.teams %} + Inaktiv + {% else %} + {{ seg.teams }} {% endif %} {% endif %} {% if seg.phone %} - + Telefoniert + {% else %} + Frei {% endif %}
+ {% endif %} + {% else %} +
+ Nicht zugeordnet
{% endif %} - {% else %} -
- -- leer --
- {% endif %} {% endfor %}
@@ -95,6 +112,7 @@ {% block scripts %}