From d58d4642af39122801fe2e52cc75a0cd89652f83 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 15 Apr 2024 11:23:07 +0200 Subject: [PATCH] 1x boats: don't show 'Ruderer: ' in logbook; Fixes #362 --- templates/includes/forms/log.html.tera | 26 ++++---- templates/includes/macros.html.tera | 82 +++++++++++++------------- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index d1d46e4..d79b824 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -218,18 +218,20 @@ {% if log.comments %}- "{{ log.comments }}"{% endif %} {% if amount_guests > 0 or log.rowers | length > 0 %} -
- Ruderer: - {% for rower in log.rowers -%} - {{ rower.name -}} - {% if not loop.last or amount_guests > 0 and log.boat.name != 'Externes Boot' %},{% endif %} - {% endfor %} - {% if amount_guests > 0 and log.boat.name != 'Externes Boot' %} - Gäste - (ohne Account): - {{ amount_guests }} - {% endif %} -
+ {% if not log.boat.amount_seats == 1 %} +
+ Ruderer: + {% for rower in log.rowers -%} + {{ rower.name -}} + {% if not loop.last or amount_guests > 0 and log.boat.name != 'Externes Boot' %},{% endif %} + {% endfor %} + {% if amount_guests > 0 and log.boat.name != 'Externes Boot' %} + Gäste + (ohne Account): + {{ amount_guests }} + {% endif %} +
+ {% endif %} {% endif %} {% endif %} diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 42c9583..e591143 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -34,18 +34,18 @@
- - {% include "includes/book" %} - Logbuch - -