mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 15:10:16 +02:00
815e7b17be
Adds the previously uncommitted quiz nav partial that broke main, and introduces TemplateReferencesTest which scans all Twig templates for extends/include/embed references and asserts each target file exists — preventing this class of missing-template mistake from reaching CI undetected.
17 lines
699 B
Twig
17 lines
699 B
Twig
{% if is_granted('IS_AUTHENTICATED') or app.current_route() == 'tvdt_quiz_select_season' %}
|
|
<div class="quiz-topbar">
|
|
{% if is_granted('IS_AUTHENTICATED') %}
|
|
<a href="{{ path('tvdt_backoffice_index') }}" class="btn btn-outline-secondary btn-sm">
|
|
{{ 'Backoffice'|trans }}
|
|
</a>
|
|
<a href="{{ path('tvdt_login_logout') }}" class="btn btn-outline-secondary btn-sm">
|
|
{{ 'Logout'|trans }}
|
|
</a>
|
|
{% else %}
|
|
<a href="{{ path('tvdt_backoffice_index') }}" class="btn btn-outline-secondary btn-sm">
|
|
{{ 'Manage Quiz'|trans }}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|