{% import _self as ui %} {# Voce di menu della sidebar. cur = current_path. #} {% macro slink(href, label, icon, cur) %} {% set active = href == '/' ? cur == '/' : (cur == href or cur starts with href ~ '/') %} {{ icon }} {{ label }} {% endmacro %} {% block title %}{{ app_name }}{% endblock %} {% block head %}{% endblock %} {% if current_user %} {% else %} {# Layout minimale per le pagine pubbliche (login) #}
๐ŸŒฑ {{ app_name }}
{% if flashes is not empty %}
{% for flash in flashes %}
{{ flash.message }}
{% endfor %}
{% endif %}
{{ block('content') }}
{% endif %} {% block scripts %}{% endblock %}