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 --- #}