{% extends "tesm_core/standalone.html" %}
{% block heading %}{{ code }} &ndash; {{ name }}{% endblock %}

{% block content %}
<div class="alert alert--{{ 'danger' if code >= 500 else 'warning' }}">
  {{ icon('alert', size=18) }}
  <div class="alert__body">{{ description }}</div>
</div>
{% if request_id %}
  <p class="fs-xs faint center">Vorgangsnummer fuer die Fehlersuche: <span class="mono">{{ request_id }}</span></p>
{% endif %}
<div class="row row--end">
  <a class="btn" href="{{ url_for('auth.login') if code in (401, 403) and not current_user.is_authenticated else back_url }}">
    {{ 'Zur Anmeldung' if code in (401, 403) and not current_user.is_authenticated else 'Zurueck' }}
  </a>
</div>
{% endblock %}
