{% block head %}
{# Show the setup name, as set in the config file, as tab title. Don't escape HTML entities. #}
{{ setupname|safe }}
{% endblock %}
{% block header %}
{# Always show a link to the home page, either a list of users or of products. #}
Home
{# Show a link to the settings, if a user logged in via password (authlevel 2). #}
{% if authlevel|default(0) > 1 %}
{% if authuser is defined %}
{# If a user is an admin, call the link "Administration". Otherwise, call it "Settings". #}
{% if authuser.is_admin %}
Administration
{% else %}
Settings
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block main %}
{# Here be content. #}
{% endblock %}