program - don't show filters if no categories
This commit is contained in:
parent
3d24e61e12
commit
ff7557361b
1 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue