hacky-ruadat/templates/stat.html.tera

23 lines
621 B
Plaintext
Raw Normal View History

2023-07-24 20:56:46 +02:00
{% import "includes/macros" as macros %}
{% extends "base" %}
{% block content %}
2023-07-30 14:33:50 +02:00
<div class="max-w-screen-lg w-full">
2023-09-27 15:36:07 +02:00
<h1 class="h1">Statistik</h1>
2023-09-28 09:26:30 +02:00
<ol class="mt-3 border-r border-l">
{% set_global km = 0 %}
2023-07-30 14:33:50 +02:00
{% for s in stat %}
2023-09-28 09:26:30 +02:00
<li class="border-t {% if loop.last %} border-b {% endif %} bg-white flex justify-between px-3 py-1">
<span>{% if km != s.rowed_km %}{{loop.index}}{% else %} - {% endif %}</span>
2023-09-27 15:36:07 +02:00
<span>{{s.name}}</span>
2023-09-27 15:55:17 +02:00
<span>{{s.rowed_km}} km</span>
2023-09-28 09:26:30 +02:00
{% set_global km = s.rowed_km %}
2023-09-27 15:36:07 +02:00
</li>
2023-07-30 14:33:50 +02:00
{% endfor %}
</ol>
</div>
2023-07-24 20:56:46 +02:00
{% endblock content%}