mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Hide next events if none are listed
This commit is contained in:
parent
ec713c345e
commit
a95615c452
1 changed files with 10 additions and 8 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue