mirror of https://gitlab.crans.org/bde/nk20
Cards on error pages
This commit is contained in:
parent
0ba77fb8f0
commit
e3898d0b1e
|
@ -1,8 +1,22 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% comment %}
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
{% endcomment %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Bad request" %}</h1>
|
<div class="card text-white bg-secondary">
|
||||||
{% blocktrans %}Sorry, your request was bad. Don't know what could be wrong. An email has been sent to webmasters with the details of the error. You can now drink a coke.{% endblocktrans %}
|
<h3 class="card-header text-center">
|
||||||
|
{% trans "Bad request" %}
|
||||||
|
</h3>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Sorry, your request was bad. Don't know what could be wrong.
|
||||||
|
An email has been sent to webmasters with the details of the error.
|
||||||
|
You can now drink a coke.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,13 +1,19 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% comment %}
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
{% endcomment %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Permission denied" %}</h1>
|
<div class="card text-white bg-secondary">
|
||||||
{% blocktrans %}You don't have the right to perform this request.{% endblocktrans %}
|
<h3 class="card-header text-center">
|
||||||
|
{% trans "Permission denied" %}
|
||||||
|
</h3>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>{% blocktrans %}You don't have the right to perform this request.{% endblocktrans %}</p>
|
||||||
{% if exception %}
|
{% if exception %}
|
||||||
<div>
|
<p>{% trans "Exception message:" %} {{ exception }}</p>
|
||||||
{% trans "Exception message:" %} {{ exception }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,13 +1,23 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% comment %}
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
{% endcomment %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Page not found" %}</h1>
|
<div class="card text-white bg-secondary">
|
||||||
{% blocktrans %}The requested path <code>{{ request_path }}</code> was not found on the server.{% endblocktrans %}
|
<h3 class="card-header text-center">
|
||||||
|
{% trans "Page not found" %}
|
||||||
|
</h3>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
The requested path <code>{{ request_path }}</code> was not found on the server.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
{% if exception != "Resolver404" %}
|
{% if exception != "Resolver404" %}
|
||||||
<div>
|
<p>{% trans "Exception message:" %} {{ exception }}</p>
|
||||||
{% trans "Exception message:" %} {{ exception }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,8 +1,22 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% comment %}
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
{% endcomment %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{% trans "Server error" %}</h1>
|
<div class="card text-white bg-secondary">
|
||||||
{% blocktrans %}Sorry, an error occurred when processing your request. An email has been sent to webmasters with the detail of the error, and this will be fixed soon. You can now drink a beer.{% endblocktrans %}
|
<h3 class="card-header text-center">
|
||||||
|
{% trans "Server error" %}
|
||||||
|
</h3>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
Sorry, an error occurred when processing your request.
|
||||||
|
An email has been sent to webmasters with the detail of the error,
|
||||||
|
and this will be fixed soon. You can now drink a beer.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue