Bloc&Co
{% if utilisateur %}
Mon profil
{% if utilisateur.role == 'admin' %}
Administration
{% endif %}
Déconnexion
{% else %}
Connexion
Inscription
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for categorie, texte in messages %}
{{ texte }}
{% endfor %}
{% endif %} {% endwith %} {% block contenu %}{% endblock %}