diff --git a/qa/ui/src/lib/components/TableOverview.svelte b/qa/ui/src/lib/components/TableOverview.svelte index 789387b6..ae842b4e 100644 --- a/qa/ui/src/lib/components/TableOverview.svelte +++ b/qa/ui/src/lib/components/TableOverview.svelte @@ -29,6 +29,7 @@ style="overflow-y: auto" > {#await themesP then themes} + {#if Object.keys(themes).length > 1} @@ -69,5 +70,48 @@ {/each} + {:else} + {#each Object.keys(themes) as tname} + {#if themes[tname].exercices} + {#each themes[tname].exercices as exercice} + + +

goto(`exercices/${exercice.exercice.id}`)} + > + {exercice.exercice.title} +

+ {#if exercice.reports} + {#each exercice.reports as report} + goto(`exercices/${exercice.exercice.id}/${report.report.id}`)} + > + + {report.report.subject} + {#if report.comments} + + {report.comments.length} + + {/if} + + + {/each} +
+ {/if} + +
+ {/each} + {/if} + {/each} + {/if} {/await}