Files
letro-authentication-service/templates/pages/error.html

52 lines
1.4 KiB
HTML

{#
Copyright 2021 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{# Sometimes we don't have the language set, so we default to english #}
{% set lang = lang or "en" %}
{% extends "base.html" %}
{% block content %}
<main class="flex flex-col gap-6">
<header class="page-heading">
<div class="icon invalid">
{{ icon.error() }}
</div>
<div class="header">
<h1 class="title">{{ _("error.unexpected") }}</h1>
{% if code %}
<p class="text font-semibold font-mono">
{{ code }}
</p>
{% endif %}
{% if description %}
<p class="text">
{{ description }}
</p>
{% endif %}
</div>
</header>
{% if details %}
<hr />
<pre>
<code class="font-mono whitespace-pre-wrap break-all">{{ details }}</code>
</pre>
{% endif %}
</main>
{% endblock %}