1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Hide next events if none are listed

This commit is contained in:
Steffo 2019-01-02 17:47:13 +01:00
parent ec713c345e
commit a95615c452

View file

@ -15,14 +15,16 @@
<div class="main-page">
<div class="left">
<div class="box">
<div class="upper-box">
Prossimi eventi
</div>
<div class="lower-box">
{% for event in next_events %}
{% include "components/event.html" %}
{% endfor %}
</div>
{% if next_events %}
<div class="upper-box">
Prossimi eventi
</div>
<div class="lower-box">
{% for event in next_events %}
{% include "components/event.html" %}
{% endfor %}
</div>
{% endif %}
</div>
{% include "components/wikibox.html" %}
<div class="box">