diff --git a/templates/index.html b/templates/index.html index eb6fd75..10ed3b6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,129 +1,130 @@ - - + + ANABASIS CLIENTS - + - - - -

/|\ Anabasis Clients

-

STATUS

-
-
+ + + +

/|\ Anabasis Clients

+

STATUS

+
+
{{status.description}} +
+
{{status.text}}
+
{{status.level}}
-
{{status.text}}
-
{{status.level}}
-
-
- Since: - {% if last_change %} - {{last_change['ts'].strftime("%c")}} - {% if status.level == 0 %}({{last_change.leases | map(attribute='display') | join(', ')}}){% endif %} - {% else %} - forever? - {% endif %} -
-

Current clients

-
{{now.strftime("%c")}}
- - +
+ Since: {% if last_change %} {{last_change['ts'].strftime("%c")}} {% if + status.level == 0 %}({{last_change.leases | map(attribute='display') | + join(', ')}}){% endif %} {% else %} forever? {% endif %} +
+

Current clients

+
{{now.strftime("%c")}}
+
+ - - {% for lease in leases %} - + + {% for lease in leases %} + - - {% endfor %} -
MAC hostname IP address
{{lease.mac}} {{lease.hostname or "???"}} {{lease.ip}}
+ + {% endfor %} + -{%if internal %} + {%if internal %}

Log

- {% for entry in log %} - - - - - - {% endfor %} + {% for entry in log %} + + + + + + {% endfor %}
{{entry.ts.strftime("%c")}} - {% if entry.state %} - - {% else %} - OUT - {% endif %} - - {{entry.lease.display}} -
{{entry.ts.strftime("%c")}} + {% if entry.state %} + + {% else %} + OUT + {% endif %} + {{entry.lease.display}}

Leaderboard

    - {% for entry in leaderboard %} -
  1. {{entry.name}} ({{entry.total}})
  2. - {% endfor %} + {% for entry in leaderboard %} +
  3. {{entry.name}} ({{entry.total}})
  4. + {% endfor %}
-{% endif %} - + {% endif %} +