diff --git a/frontend/src/routes/dashboard/+page.svelte b/frontend/src/routes/dashboard/+page.svelte index 3a77b5d..e7dc0e2 100644 --- a/frontend/src/routes/dashboard/+page.svelte +++ b/frontend/src/routes/dashboard/+page.svelte @@ -93,9 +93,7 @@ SPDX-License-Identifier: MPL-2.0 ClassQuiz - Dashboard -{#if analytics_quiz_selected} - -{/if} +
{#await getData()} diff --git a/frontend/src/routes/dashboard/Analytics.svelte b/frontend/src/routes/dashboard/Analytics.svelte index 5df9470..bd5963c 100644 --- a/frontend/src/routes/dashboard/Analytics.svelte +++ b/frontend/src/routes/dashboard/Analytics.svelte @@ -30,54 +30,63 @@ SPDX-License-Identifier: MPL-2.0 }); -
-
-

{$t('words.analytics')}

-
-

{$t('words.rating')}

- - - - - - - - - -
{$t('words.like', { count: 2 })}{$t('words.dislike', { count: 2 })}
{quiz.likes}{quiz.dislikes}
-
-
-

{$t('dashboard.views_n_plays')}

- - - - - - - - - -
{$t('words.view', { count: 2 })}{$t('words.play', { count: 2 })}
{quiz.views}{quiz.plays}
-
-
-

{$t('words.info')}

-

- {$t('dashboard.info_analytics')} -

-
-
-

- Since there's still some space left down here, I guess that I take this opportunity - to thank You for using ClassQuiz! Have a great day and continue using ClassQuiz ;) -

-
+{#if quiz} +
+
+

{$t('words.analytics')}

+
+

{$t('words.rating')}

+ + + + + + + + + +
{$t('words.like', { count: 2 })}{$t('words.dislike', { count: 2 })}
{quiz.likes}{quiz.dislikes}
+
+
+

{$t('dashboard.views_n_plays')}

+ + + + + + + + + +
{$t('words.view', { count: 2 })}{$t('words.play', { count: 2 })}
{quiz.views}{quiz.plays}
+
+
+

{$t('words.info')}

+

+ {$t('dashboard.info_analytics')} +

+
+
+

+ Since there's still some space left down here, I guess that I take this + opportunity to thank You for using ClassQuiz! Have a great day and continue + using ClassQuiz ;) +

+
+
-
+{/if}