From 3923ba9f8b56b41725b29b2f0abe6315678bea73 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Thu, 28 Sep 2023 09:26:30 +0200 Subject: [PATCH] [TASK] add current place to stats --- templates/log.completed.html.tera | 2 +- templates/stat.html.tera | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/log.completed.html.tera b/templates/log.completed.html.tera index cc9aaf0..9060de3 100644 --- a/templates/log.completed.html.tera +++ b/templates/log.completed.html.tera @@ -11,7 +11,7 @@
- +
diff --git a/templates/stat.html.tera b/templates/stat.html.tera index 50fcb48..c8be5b4 100644 --- a/templates/stat.html.tera +++ b/templates/stat.html.tera @@ -7,11 +7,14 @@

Statistik

-
    +
      + {% set_global km = 0 %} {% for s in stat %} -
    1. +
    2. + {% if km != s.rowed_km %}{{loop.index}}{% else %} - {% endif %} {{s.name}} {{s.rowed_km}} km + {% set_global km = s.rowed_km %}
    3. {% endfor %}