program - don't show filters if no categories

This commit is contained in:
isUnknown 2024-09-04 15:58:20 +02:00
parent 3d24e61e12
commit ff7557361b

View file

@ -22,6 +22,7 @@
}"
>
<?php if ($page->categories()->isNotEmpty()): ?>
<section class="filters">
<button
x-data="{title: 'Calendrier'}"
@ -42,6 +43,7 @@
@click="if (tab === filterTitle) { tab = 'Programme' } else { tab = filterTitle; filter = title }"
></button>
<?php endforeach ?>
<?php endif ?>
</section>
<section class="page-title">
<h1 x-text="tab"></h1>