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

Statistik

{% 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 }} km {{ s.amount_trips }} Fahrt{{ s.amount_trips | pluralize(plural="en") }} {% set_global km = s.rowed_km %}
{% endfor %}
Summe Vereinsmitglieder {{ club_km }} km {{ club_trips }} Fahrt{{ club_trips | pluralize(plural="en") }}
Summe {{ guest_km.name }} {{ guest_km.rowed_km }} km {{ guest_km.amount_trips }} Fahrt{{ guest_km.amount_trips | pluralize(plural="en") }}
Gesamtsumme {{ club_km + guest_km.rowed_km }} km {{ guest_km.amount_trips + club_trips }} Fahrt{{ guest_km.amount_trips + club_trips | pluralize(plural="en") }}
{% endblock content %}