2026-02-23 09:26:44 +13:00
|
|
|
{% block flashes %}
|
|
|
|
|
{# Insert flashes #}
|
|
|
|
|
<turbo-stream action="replace" action="morph" target="toast-container">
|
|
|
|
|
<template>
|
|
|
|
|
<div class="toast-container" id="toast-container">
|
|
|
|
|
{% for label, messages in app.flashes() %}
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
{{ include('_toast.html.twig', {
|
|
|
|
|
'label': label,
|
|
|
|
|
'message': message
|
|
|
|
|
}) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</turbo-stream>
|
|
|
|
|
{% endblock %}
|
2022-07-24 15:19:05 +02:00
|
|
|
|
2026-02-22 21:46:55 +01:00
|
|
|
|
2022-07-24 15:19:05 +02:00
|
|
|
|
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>
|
|
|
|
|
|
2026-02-22 21:53:37 +01:00
|
|
|
<turbo-stream action="update" target="locale-select-menu">
|
|
|
|
|
<template>
|
|
|
|
|
{% set locales = settings_instance('localization').languageMenuEntries %}
|
|
|
|
|
{% if locales is empty %}
|
|
|
|
|
{% set locales = locale_menu %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% for locale in locales %}
|
|
|
|
|
<a class="dropdown-item" data-turbo="false" data-turbo-frame="_top" href="{{ path(app.request.attributes.get('_route'),
|
|
|
|
|
app.request.query.all|merge(app.request.attributes.get('_route_params'))|merge({'_locale': locale})) }}">
|
|
|
|
|
{{ locale|language_name }} ({{ locale|upper }})</a>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</template>
|
|
|
|
|
</turbo-stream>
|
|
|
|
|
|
2025-10-17 22:34:27 +02:00
|
|
|
|