{% if env["auth_active"] %} {% if env["logged_in"] %}
{{ _("Logged in as %(username)s", username=env["username"]) }} - {{ _("Log Out") }}
{% else %}
{% endif %} {% else %}
{{ _("Web Interface Authentication Disabled") }} - {{ _("See Wiki for more information", url="https://github.com/PiSCSI/piscsi/wiki/Web-Interface#enable-authentication") }}
{% endif %}

{{ _("PiSCSI") }} {{ _("Control Page") }}

{{ _("System Name:") }} {{ env['system_name'] }}
{% if get_flashed_messages(): %} {% for category, message in get_flashed_messages(with_categories=true) %}
{% if category == "stdout" or category == "stderr" %}
{{ message }}
{% else %}
{{ message }}
{% endif %}
{% endfor %} {% endif %}
{{ content_class }} {% block content %}{% endblock content %}