From a95615c452a28db1c24c0e5583e3b06781890ae9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Jan 2019 17:47:13 +0100 Subject: [PATCH] Hide next events if none are listed --- templates/main.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/main.html b/templates/main.html index aa0e8903..29711a0b 100644 --- a/templates/main.html +++ b/templates/main.html @@ -15,14 +15,16 @@
-
- Prossimi eventi -
-
- {% for event in next_events %} - {% include "components/event.html" %} - {% endfor %} -
+ {% if next_events %} +
+ Prossimi eventi +
+
+ {% for event in next_events %} + {% include "components/event.html" %} + {% endfor %} +
+ {% endif %}
{% include "components/wikibox.html" %}