Added practice-button to view-quiz page

This commit is contained in:
Mawoka
2022-09-16 22:36:05 +02:00
parent acb492b7c4
commit 2e979451e4
3 changed files with 14 additions and 4 deletions
@@ -70,7 +70,7 @@
<ImportedOrNot imported={quiz.imported_from_kahoot} />
</div>
<div class="flex justify-center m-8">
<div class="flex justify-center mt-8 mb-4">
{#if logged_in}
<button
class="px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
@@ -91,6 +91,14 @@
</div>
{/if}
</div>
<div class="flex justify-center m-2">
<a
class="px-4 py-2 leading-5 text-white transition-colors duration-200 transform bg-gray-700 rounded text-center hover:bg-gray-600 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
href="/practice?quiz_id={quiz.id}"
>
{$t('words.practice')}
</a>
</div>
<div class="flex justify-center">
<a href="mailto:report@mawoka.eu?subject=Report quiz {quiz.id}" class="text-sm underline">
{$t('words.report')}