From 1e29fab4d11226e3377908e4bfa48aac22cf3ea7 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 19:27:36 +0200 Subject: [PATCH] fix divider visual bug between events and trips --- templates/index.html.tera | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index 93a5bac..4e0e0c6 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -28,9 +28,11 @@ {{ day.day | date(format="%A", locale="de_AT") }} + {% if day.planned_events | length > 0 or day.trips | length > 0 %} +
+ {# --- START Events --- #} {% if day.planned_events | length > 0 %} -
{% for planned_event in day.planned_events %} {% set amount_cur_cox = planned_event.cox | length %} {% set amount_cox_missing = planned_event.planned_amount_cox - amount_cur_cox %} @@ -128,13 +130,11 @@ {# --- END Sidebar Content --- #}
{% endfor %} -
{% endif %} {# --- END Events --- #} {# --- START Trips --- #} {% if day.trips | length > 0 %} -
{% for trip in day.trips %}
@@ -197,9 +197,10 @@
{# --- END Sidebar Content --- #} {% endfor %} -
{% endif %} {# --- END Trips --- #} +
+ {% endif %} {# --- START Add Buttons --- #}