{% if title %}
{{ title }}
{% else %}
{{ instance_name }} Web Interface
{% endif %}
{{ instance_name }}
{% for endpoint, caption in [ ('web.index', 'Home'), ('web.tasks', 'Tasks'), ('web.taskgroups', 'Task Groups'), ('web.templates', 'Templates'), ('web.tags', 'Tags'), ('web.users', 'Users'), ('web.groups', 'Groups'), ] %}
{{ caption }}
{% endfor %}
{% if current_user.is_anonymous %}
Login
{% else %}
{{ current_user.name }}
Profile
{% if security.changeable %}
Change password
{% endif %} {% if current_user.has_permission('user_read_all') %}
Mail
{% endif %} {% if current_user.has_role('superuser') or current_user.has_role('admin') %}
Admin panel
{% endif %}
Log out
{% endif %}
{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, message in messages %}
{{message}}
{% endfor %} {% endif %} {% endwith %} {% block content %}{% endblock %}