Files
matrix-authentication-service/templates/pages/error.html
T

45 lines
1.2 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 %}
<section class="flex-1 flex items-center justify-center">
<div class="w-64 flex flex-col gap-2">
<h1 class="text-xl font-semibold">{{ _("error.unexpected") }}</h1>
{% if code %}
<p class="font-semibold font-mono">
{{ code }}
</p>
{% endif %}
{% if description %}
<p>
{{ description }}
</p>
{% endif %}
{% if details %}
<hr />
<code>
<pre class="font-mono whitespace-pre-wrap break-all">{{ details }}</pre>
</code>
{% endif %}
</div>
</section>
{% endblock %}