From c15360af5b030a1ef7f2c0018b52f9611e857f86 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 4 Mar 2023 13:55:11 +0100 Subject: [PATCH] sort rowsers by registratoin datetime --- templates/index.html.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index ec7f68e..ffbe55f 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -13,7 +13,7 @@ {% set cox = trips | filter(attribute="user.is_cox", value=true) %} {% set amount_cox = cox | length %} - {% set rowers = trips | filter(attribute="user.is_cox", value=false) %} + {% set rowers = trips | filter(attribute="user.is_cox", value=false) | sort(attribute="trip.created") %} {% if amount_cox < day.planned_amount_cox %} {% 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!