More progress on frontend for game results

This commit is contained in:
Mawoka
2023-02-05 21:33:10 +01:00
parent bce22c43fc
commit 36688bb552
5 changed files with 173 additions and 12 deletions
+12 -8
View File
@@ -15,15 +15,15 @@
<table class="w-full">
<tr class="border-b-2 dark:border-gray-500 text-left border-gray-300">
<th class="border-r dark:border-gray-500 p-1 mx-auto border-gray-300"
>Quiz Title</th
>
>Quiz Title
</th>
<th class="border-r dark:border-gray-500 p-1 mx-auto border-gray-300"
>Date Played</th
>
>Date Played
</th>
<th class="border-r dark:border-gray-500 p-1 mx-auto border-gray-300"
>Player count</th
>
<th>Note</th>
>Player count
</th>
<th class="mx-auto p-1">Note</th>
</tr>
{#each data.results as result}
<tr class="text-left">
@@ -38,7 +38,11 @@
<td class="border-r dark:border-gray-500 p-1 border-gray-300"
>{Object.keys(result.player_scores).length}</td
>
<td>{result.note}</td>
<td class:p-1={result.note}>
{#if result.note}
{result.note}
{/if}
</td>
</tr>
{/each}
</table>