From cecf15320d34bd2195a3b7b88e9f461302fc81cc Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 20:22:46 +0200 Subject: [PATCH 1/3] show status of trip by adding icon and text --- templates/index.html.tera | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index f5f281d..497ef3c 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -43,7 +43,7 @@ class="text-gray-600">({{ planned_event.name }})
Details @@ -139,10 +139,15 @@
- {{ trip.planned_starting_time }} Uhr ({{ trip.cox_name }})
+ {% if trip.max_people == 0 %}{% endif %}{{ trip.planned_starting_time }} Uhr + {% if trip.max_people == 0 %} + (Absage {{ trip.cox_name }}) + {% else %} + ({{ trip.cox_name }}) + {% endif %} +
Details From d6b0ce1603ec505e7898c9c2b0eb38b132567984 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 20:46:46 +0200 Subject: [PATCH 2/3] 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 }}