{% import "includes/macros" as macros %} {% extends "base" %} {% block content %}

Statistik

# Name km Fahrten
{% set_global km = 0 %} {% set_global km = 0 %} {% set_global index = 1 %} {% for s in stat %}
{% if km != s.rowed_km %} {{ loop.index }} {% set_global index = loop.index %} {% else %} {{ index }} {% endif %} {{ s.name }} {{ s.rowed_km }} {{ s.amount_trips }} {% set_global km = s.rowed_km %}
{% endfor %}
Summe Vereinsmitglieder {{ club_km }} {{ club_trips }}
Summe {{ guest_km.name }} {{ guest_km.rowed_km }} {{ guest_km.amount_trips }}
Gesamtsumme {{ club_km + guest_km.rowed_km }} {{ guest_km.amount_trips + club_trips }}
{% endblock content %}