libfic: Can indicate that an exercice is WIP

This commit is contained in:
nemunaire 2022-11-05 15:26:57 +01:00
commit c415e06237
10 changed files with 63 additions and 6 deletions

View file

@ -36,6 +36,15 @@
{#if !$my || !$my.exercices[$current_exercice.id]}
<p class="lead text-justify">{@html $current_exercice.headline}</p>
{:else}
{#if $my.exercices[$current_exercice.id].wip}
<Alert color="warning">
<Icon name="cone-striped" />
<strong>
Cette étape est marquée comme étant en cours d'élaboration.
</strong>
Elle n'est pas prête à être tentée. Vous devriez directement passer à l'étape suivante.
</Alert>
{/if}
<p class="lead text-justify">{@html $my.exercices[$current_exercice.id].statement}</p>
{#if $my.exercices[$current_exercice.id].issue}
<Alert color="{$my.exercices[$current_exercice.id].issuekind}">