From d6b0ce1603ec505e7898c9c2b0eb38b132567984 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 20:46:46 +0200 Subject: [PATCH] show cancelation in sidebar --- README.md | 1 - templates/includes/macros.html.tera | 2 +- templates/index.html.tera | 12 +++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b079d5b..c13acbd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ - Wanderfahrt: ⛱ # Notes / Bugfixes -- [] max_people = 0 -> Rot hervorheben, dass Ausfahrt abgesagt wurde? - [] my trips for cox - [] add `trip_type` (id, name, desc, question, icon) with a FK to `trip_details` - [] add `always_show` to `planned_trips` (e.g. for wanderfahrten) diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index d3757b5..fbf28df 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -41,7 +41,7 @@ {% endmacro alert %} -{% macro box(participants, empty_seats, header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} +{% macro box(participants, empty_seats='', header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %}
{{ header }} {{ empty_seats }}
{% if participants | length > 0 %} diff --git a/templates/index.html.tera b/templates/index.html.tera index 497ef3c..5f61704 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -176,9 +176,15 @@ {# --- START Sidebar Content --- #}