From 3c7f56e94fe2ef897f14536becb47d8feaf08b4c Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Tue, 31 Oct 2023 20:57:28 +0100 Subject: [PATCH] =?UTF-8?q?[TASK]=20beautify=20Steuerperson/Schiffsf=C3=BC?= =?UTF-8?q?hrer=20tag=20in=20list=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/includes/forms/log.html.tera | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index 976e82f..ce37b42 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -135,14 +135,13 @@ {% endif %} {% for rower in log.rowers %} -

{{ rower.name }} {% if rower.id == log.shipmaster %}Schiffsführer {% endif %}{% if rower.id == log.steering_person%}Steuerperson{% endif %}

- {# @MB: shipmaster + steering_person could be prettier :') #} +

{{ rower.name }} {% if rower.id == log.shipmaster or rower.id == log.steering_person %}({% if rower.id == log.shipmaster %}Schiffsführer{% endif %}{% if rower.id == log.shipmaster and rower.id == log.steering_person %}/{% endif %}{% if rower.id == log.steering_person%}Steuerperson{% endif %}){% endif %}

{% endfor %} {% set amount_rowers = log.rowers | length %} {% set amount_guests = log.boat.amount_seats - amount_rowers -1 %} {% if amount_guests > 0 %} - Gäste (ohne Account): + Gäste (ohne Account): {{ amount_guests }} {% endif %} @@ -203,7 +202,7 @@ {{ rower.name }}{% if not loop.last or amount_guests > 0 %}, {% endif %} {% endfor %} {% if amount_guests > 0 %} - Gäste (ohne Account): {{ amount_guests }} + Gäste (ohne Account): {{ amount_guests }} {% endif %} {% endif %}