Distribute some traces to students
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
parent
018ed9227f
commit
db5658ccc1
4 changed files with 134 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import ScoreBadge from '$lib/components/ScoreBadge.svelte';
|
||||
import SubmissionStatus from '$lib/components/SubmissionStatus.svelte';
|
||||
import SurveyBadge from '$lib/components/SurveyBadge.svelte';
|
||||
import TraceStatus from '$lib/components/TraceStatus.svelte';
|
||||
import WorkAdmin from '$lib/components/WorkAdmin.svelte';
|
||||
import WorkRepository from '$lib/components/WorkRepository.svelte';
|
||||
import { getScore } from '$lib/users';
|
||||
|
|
@ -293,7 +294,25 @@
|
|||
<i class="bi bi-clipboard2-check-fill text-info me-1"></i>
|
||||
<strong>Note finale :</strong> <span title="Établie le {grade.date}">{grade.score}</span> {#if grade.comment}– {grade.comment}{/if}
|
||||
</div>
|
||||
{:catch error}
|
||||
{#await w.getMyTraces()}
|
||||
<div class="spinner-border spinner-border-sm" role="status"></div>
|
||||
{:then traces}
|
||||
{#each traces as trace}
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<h4>{trace.title}</h4>
|
||||
<TraceStatus status={trace.status} />
|
||||
</div>
|
||||
<div class="bg-dark text-light px-2 pt-2">
|
||||
<pre class="pb-2">{#each trace.logs as l (l.pos)}{l.out}{/each}</pre>
|
||||
</div>
|
||||
{/each}
|
||||
{:catch error}
|
||||
<div class="alert alert-danger">
|
||||
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
||||
<strong>{error.message}</strong>
|
||||
</div>
|
||||
{/await}
|
||||
{:catch error}
|
||||
<div class="alert alert-danger">
|
||||
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
||||
<strong>{error.message}</strong>
|
||||
|
|
|
|||
Reference in a new issue