{{ t('app.title') }}
{% for code, name in languages %}
{{ code|upper }}
{{ ' ยท ' if not loop.last }} {% endfor %}
{% if current_user.is_authenticated %}
{{ current_user.username }}
{% set nav_items = [('calc', t('nav.calc'))] %} {% if current_user.is_admin %} {% set nav_items = nav_items + [('settings_view', t('nav.settings')), ('users_view', t('nav.users'))] %} {% endif %} {% for endpoint, label in nav_items %} {% set is_current = request.endpoint == endpoint %}
{{ label }}
{% endfor %}
{{ t('nav.logout') }}
{{ t('nav.version') }}
{{ version.commit_short }}
{{ t('nav.deployed') }}
{{ version.deployed or version.built or t('nav.dev') }}
{% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, msg in messages %}
{{ msg }}
{% endfor %} {% endwith %} {% block content %}{% endblock %}
{% block scripts %}{% endblock %}