mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-08 16:40:15 +02:00
fix: right-align quiz status badges
Puts the badge at the end of the row via ms-auto instead of leading the quiz name.
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
{% for quiz in season.quizzes %}
|
{% for quiz in season.quizzes %}
|
||||||
<a class="list-group-item list-group-item-action d-flex align-items-center gap-2{% if season.activeQuiz == quiz %} active{% endif %}"
|
<a class="list-group-item list-group-item-action d-flex align-items-center gap-2{% if season.activeQuiz == quiz %} active{% endif %}"
|
||||||
href="{{ path('tvdt_backoffice_quiz', {seasonCode: season.seasonCode, quiz: quiz.id}) }}">
|
href="{{ path('tvdt_backoffice_quiz', {seasonCode: season.seasonCode, quiz: quiz.id}) }}">
|
||||||
{% if season.activeQuiz == quiz %}
|
|
||||||
<span class="badge text-bg-light">{{ 'Active'|trans }}</span>
|
|
||||||
{% elseif quiz.isFinalized %}
|
|
||||||
<span class="badge text-bg-success">{{ 'Ready'|trans }}</span>
|
|
||||||
{% endif %}
|
|
||||||
{{ quiz.name }}
|
{{ quiz.name }}
|
||||||
|
{% if season.activeQuiz == quiz %}
|
||||||
|
<span class="badge text-bg-light ms-auto">{{ 'Active'|trans }}</span>
|
||||||
|
{% elseif quiz.isFinalized %}
|
||||||
|
<span class="badge text-bg-success ms-auto">{{ 'Ready'|trans }}</span>
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ 'No quizzes'|trans }}
|
{{ 'No quizzes'|trans }}
|
||||||
|
|||||||
Reference in New Issue
Block a user