{#if $user && $user.is_admin}
{#await getPromos() then promos}
-
{#each promos as promo, pid (pid)}
{promo}
{/each}
{/await} {/if}
Catégories // cours
{#await getCategories()}
Chargement des catégories …
{:then categories}
ID
Nom
Promo
Étendre
{#each categories.filter((c) => (filterPromo === "" || filterPromo === c.promo)) as c (c.id)}
{c.id}
{c.label}
{c.promo}
{c.expand?"Oui":"Non"}
{/each}
{/await}