diff --git a/tsstats/templates/index.jinja2 b/tsstats/templates/index.jinja2
new file mode 100644
index 0000000..39d3e57
--- /dev/null
+++ b/tsstats/templates/index.jinja2
@@ -0,0 +1,35 @@
+
+
+
-{% if debug %}
-
- DEBUG
-
-{% endif %}
-
-{% for headline, list in objs %}
- {% if list|length > 0 %}
- {% set headline_id = headline|lower|replace(' ', '_') %}
+{% set clients = server.clients %}
+{% for headline, clients in [
+ ('Onlinetime', clients.onlinetime),
+ ('Kicks', clients.kicks),
+ ('Passive kicks', clients.pkicks),
+ ('Bans', clients.bans),
+ ('Passive bans', clients.pbans)
+] %}
+ {% if clients|length > 0 %}
+ {% set headline_id = [server.sid, headline|lower|replace(' ', '_')]|join('.') %}
{{ headline }}
- {% for client, value in list %}
- {% set id = headline_id + "." + client.nick %}
+ {% for client, value in clients %}
+ {% set id = [headline_id, client.nick|striptags]|join('.') %}
-
{{ client.nick }}{{ " (" + client.identifier + ")" if debug }}
{{ value }}
@@ -33,7 +20,3 @@
{% endif %}
{% endfor %}
-
Generated by TeamspeakStats at {{ creation_time|frmttime }}
-
-
-