{% macro theme_switch() %}
{{ icon('monitor') }}
{{ icon('sun') }}
{{ icon('moon') }}
{% endmacro %}
B
I
U
1
2
3
{% if user and not standalone %} {% set ep = request.endpoint %} {% endif %}
{% if not user %}
{{ theme_switch() }}
{% endif %} {% if user and not standalone %}
{{ icon('menu') }}
{{ icon('home') }}
Home
{{ icon('chevron-right') }}
{% block crumb %}{{ self.title() }}{% endblock %}
{{ theme_switch() }}
{{ (user.name or user.username)[0] }}
{{ user.name or user.username }}
{{ user.role|capitalize }}
{{ icon('log-out') }}
Logout
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for cat, msg in messages %}
{{ icon('check-circle' if cat == 'ok' else 'alert') }}
{{ msg }}
{{ icon('x') }}
{% endfor %}
{% endif %} {% endwith %} {% block content %}{% endblock %}
{% if user %}{% include "_assistant.html" %}{% endif %}