remove event container remnant if there are no events

This commit is contained in:
Yannik Schmidt
2020-07-27 11:57:59 +02:00
parent 1015370853
commit c5238c3200
2 changed files with 46 additions and 45 deletions

View File

@@ -1,5 +1,7 @@
{% if events %} {% if events %}
<div class="col grid-margin-md stretch-card d-flex_" style="font-size: x-large;"> <div class="bg-secondary">
<div class="container container-responsive pb-2 pt-2">
<div class="col grid-margin-md stretch-card d-flex_" style="font-size: x-large;">
<div class="card bg-transparent border-0"> <div class="card bg-transparent border-0">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between"></div> <div class="d-flex justify-content-between"></div>
@@ -33,14 +35,16 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
<!-- mehr Termine Button --> <!-- mehr Termine Button -->
<script> <script>
function showAdditionalDates(){ function showAdditionalDates(){
Array.from(document.getElementsByClassName("moreDates")).forEach(element => { Array.from(document.getElementsByClassName("moreDates")).forEach(element => {
element.style.display = ""; element.style.display = "";
}); });
document.getElementById("moreDatesButton").style.display = "none" document.getElementById("moreDatesButton").style.display = "none"
} }
</script> </script>
</div>
</div>
{% endif %} {% endif %}

View File

@@ -30,11 +30,8 @@
</div> </div>
</header> </header>
<div class="bg-secondary"> <!-- events -->
<div class="container container-responsive pb-2 pt-2"> {% include 'events.html' %}
{% include 'events.html' %}
</div>
</div>
<!-- picture links --> <!-- picture links -->
{% if mainLinks %} {% if mainLinks %}