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:
2026-07-08 15:33:59 +02:00
parent e8a8fb3f54
commit b8b50e6d50
@@ -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 }}