program hide previous events section if empty
This commit is contained in:
parent
c2701546aa
commit
068492e495
1 changed files with 6 additions and 4 deletions
|
|
@ -71,10 +71,12 @@
|
|||
<h2>Prochainement — <?= $page->children()->first()->title() ?></h2>
|
||||
</section>
|
||||
<?php snippet('events-grid', ['events' => $futureEvents, 'columns' => 3]) ?>
|
||||
<section class="yellow">
|
||||
<h2>Événements passés</h2>
|
||||
</section>
|
||||
<?php snippet('events-grid', ['events' => $pastEvents, 'columns' => 3]) ?>
|
||||
<?php if ($pastEvents->count() > 0): ?>
|
||||
<section class="yellow">
|
||||
<h2>Événements passés</h2>
|
||||
</section>
|
||||
<?php snippet('events-grid', ['events' => $pastEvents, 'columns' => 3]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue