{% block stylesheets %} {# Include the main bootstrap theme based on user/global setting #} {% if not app.user.theme is defined %} {% set theme = global_theme %} {% else %} {% set theme = app.user.theme %} {% endif %} {% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %} {% else %} {% endif %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {{ encore_entry_script_tags('ru2ftwofactor') }} {% endblock %} {% block body %}
{% include "_navbar.html.twig" %}
{% include "_toast_container.html.twig" %}
{# Here will be the real content be injected#} {% block content %} {% endblock %}
{% for label, messages in app.flashes() %} {% for message in messages %} {{ include('_toast.html.twig', { 'label': label, 'message': message }) }} {% endfor %} {% endfor %}
{# Allow pages to request a fully reload of everything #} {% if global_reload_needed is defined and global_reload_needed %}
{% endif %}
{% block scripts %} {% endblock %}
{# Back to top buton #} {% endblock %}