This commit is contained in:
nik8
2025-03-14 18:18:19 +01:00
parent 9f6c1cc33c
commit 3a099945b5

View File

@@ -63,13 +63,15 @@
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
{% for option in question.data.options %}
{% if option.is_correct %}
<p class="text-sm"> <p class="text-sm">
<span class="text-gray-500">Richtige Antwort:</span> <span class="text-gray-500">Richtige Antwort:</span>
<span class="ml-1 font-medium {% if question.data.correct_answer %}text-green-700{% else %}text-red-700{% endif %}"> <span class="ml-1 font-medium {% if option.value == "Wahr" %} text-green-700 {% else %}text-red-700{% endif %}">{{ option.value }}</span>
{% if question.data.correct_answer %}Wahr{% else %}Falsch{% endif %}
</span>
</p> </p>
{% endif %} {% endif %}
{% endfor %}
{% endif %}
</div> </div>
</div> </div>
<div class="flex space-x-2 ml-4"> <div class="flex space-x-2 ml-4">