qa: Don't fail if no intro

This commit is contained in:
nemunaire 2023-07-25 09:36:30 +02:00
parent d4990916b5
commit 7114ece593

View File

@ -40,9 +40,11 @@
<small class="m-2 mb-3 text-muted text-truncate">{@html theme.authors}</small>
</div>
<Container class="text-muted" style="overflow-y: auto; max-height: 34vh">
{@html theme.intro.replace("$FILES$", "../files")}
</Container>
{#if theme.intro}
<Container class="text-muted" style="overflow-y: auto; max-height: 34vh">
{@html theme.intro.replace("$FILES$", "../files")}
</Container>
{/if}
{#await getThemedExercices($page.params.tid)}
{:then exercices}