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
+3 -2
View File
@@ -105,7 +105,7 @@
"edit": "Bearbeiten",
"delete": "Löschen",
"public": "Öffentlich",
"start": "Start",
"start": "Starten",
"connect": "Verbinden",
"pin": "PIN",
"kick": "Kicken",
@@ -142,7 +142,8 @@
"other": "andere",
"other_plural": "anderen",
"donating": "Spende",
"find": "Finden"
"find": "Finden",
"practice": "Üben"
},
"editor": {
"time_in_seconds": "Zeit in Sekunden",
+2 -1
View File
@@ -142,7 +142,8 @@
"other": "other",
"other_plural": "others",
"donating": "donating",
"find": "Find"
"find": "Find",
"practice": "Practice"
},
"editor": {
"time_in_seconds": "Time in seconds",
@@ -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')}