2022-07-24 15:19:05 +02:00
|
|
|
{# Insert flashes #}
|
|
|
|
<div class="toasts-global d-none">
|
|
|
|
{% for label, messages in app.flashes() %}
|
|
|
|
{% for message in messages %}
|
|
|
|
{{ include('_toast.html.twig', {
|
|
|
|
'label': label,
|
|
|
|
'message': message
|
|
|
|
}) }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{# Allow pages to request a fully reload of everything #}
|
|
|
|
{% if global_reload_needed is defined and global_reload_needed %}
|
|
|
|
<div {{ stimulus_controller('turbo/global_reload') }}></div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-09-25 02:08:54 +02:00
|
|
|
{# Insert info about when the sidebar trees were updated last time, so the sidebar_tree_controller can decide if it needs to reload the tree #}
|
|
|
|
<span id="sidebar-last-time-updated" style="display: none;" data-last-update="{{ sidebar_tree_updater.lastTreeUpdate.format("Y-m-d\\TH:i:sP") }}"></span>
|
|
|
|
|
2024-02-03 00:50:38 +01:00
|
|
|
{# The title block is already escaped, therefore we dont require any additional escaping here #}
|
|
|
|
<div class="d-none" data-title="{{ current_page_title|trim|raw }}" {{ stimulus_controller('turbo/title') }}></div>
|
2022-07-24 17:03:57 +02:00
|
|
|
|
|
|
|
<div class="d-none" {{ stimulus_controller('turbo/locale_menu') }}>
|
|
|
|
{% for locale in locale_menu %}
|
2022-10-09 20:11:48 +02:00
|
|
|
<a class="dropdown-item" data-turbo="false" data-turbo-frame="_top" href="{{ path(app.request.attributes.get('_route'),
|
2023-11-05 21:32:45 +01:00
|
|
|
app.request.query.all|merge(app.request.attributes.get('_route_params'))|merge({'_locale': locale})) }}">
|
2022-07-24 17:03:57 +02:00
|
|
|
{{ locale|language_name }} ({{ locale|upper }})</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|