Чудо Обувь
Каталог
{% if current_role != 'guest' %}
Корзина
{% endif %} {% if current_role in ['admin', 'manager'] %}
Заказы
{% endif %} {% if current_role == 'guest' %}
Войти
{% else %}
{{ current_user }} ({{ current_role }})
Выйти
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {% block content %}{% endblock %}