{% extends "base" %} {% block content %}

Ausfahrten

{% for day_with_trip in data %} {% set day = day_with_trip.day %} {% set day_string = day.day | date(format="%Y-%m-%d") %} {% set trips = day_with_trip.trips %} {% set cox = trips | filter(attribute="user.is_cox", value=true) %} {% set amount_cox = cox | length %} {% set cox_needed = amount_cox < day.planned_amount_cox %}
{{ day.day | date(format="%d.%m.%Y")}} {% if user.is_admin %}
{% endif %} {% if day.planned_amount_cox > 0%} {% set rowers = trips | filter(attribute="user.is_cox", value=false) | sort(attribute="trip.created") %} {% if cox_needed %} {% set cox_left = day.planned_amount_cox - amount_cox %}
Es {{ cox_left | pluralize(singular="wird", plural="werden")}} noch {{ cox_left }} Steuerperson{{ cox_left | pluralize(plural="en")}} gesucht!
{% endif %} Abfahrtszeit: {{ day.planned_starting_time }} Uhr
{{ trips | length }} angemeldete Person{{ trips | length | pluralize(plural="en") }}: {{ cox | length }} Steuerperson{{ cox | length | pluralize(plural="en") }} ({% for c in cox %}{{ c.user.name }} {% if c.user.name == user.name %}
{% endif %} {% endfor %}), {{ rowers | length }} Ruderer:
    {% for r in rowers %}
  1. {{ r.user.name }} (angemeldet seit {{ r.trip.created }}) {% if r.user.name == user.name %}
    {% endif %}
  2. {% endfor %}
{% if day.open_registration or user.is_cox %}
+
{% else %} Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen) {% endif %} {% else %} (Noch) keine Ausfahrt geplant {% endif %}
{% endfor %} {% if user.is_cox %} Alle heurigen Ausfahrten anzeigen {% endif %} {% endblock content %}