From a17726e7144c387b0459dd107e5ddc8f63e0af0e Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 28 Jun 2023 14:15:03 +0200 Subject: [PATCH] lower bound = 0 for unused seats --- templates/includes/macros.html.tera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 7566399..7a88a1a 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -57,7 +57,7 @@ {% endmacro alert %} {% macro box(participants, empty_seats='', header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} -
{{ header }} {{ empty_seats }}
+
{{ header }} {% if empty_seats >= 0 %} {{ empty_seats }} {% else %} 0 {% endif %}
{% if participants | length > 0 %} {% for rower in participants %}