Nouvelles pages d'erreur
This commit is contained in:
parent
191144c234
commit
f861add38b
5 changed files with 93 additions and 2 deletions
Binary file not shown.
|
@ -7,8 +7,8 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 0.1\n"
|
"Project-Id-Version: 0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-06-18 19:34+0200\n"
|
"POT-Creation-Date: 2021-06-18 22:33+0200\n"
|
||||||
"PO-Revision-Date: 2021-06-18 21:19+0200\n"
|
"PO-Revision-Date: 2021-06-18 22:34+0200\n"
|
||||||
"Last-Translator: Test Translator <test@translator>\n"
|
"Last-Translator: Test Translator <test@translator>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: en\n"
|
"Language: en\n"
|
||||||
|
@ -744,6 +744,33 @@ msgstr ""
|
||||||
"No voter with this username and password exists for this election. Check "
|
"No voter with this username and password exists for this election. Check "
|
||||||
"that the information entered is correct, the fields are case sensitive."
|
"that the information entered is correct, the fields are case sensitive."
|
||||||
|
|
||||||
|
#: shared/templates/403.html:6
|
||||||
|
msgid "Erreur 403"
|
||||||
|
msgstr "403 error"
|
||||||
|
|
||||||
|
#: shared/templates/403.html:16
|
||||||
|
msgid "Vous n'avez pas accès à cette ressource."
|
||||||
|
msgstr "You do not have access to this resource."
|
||||||
|
|
||||||
|
#: shared/templates/404.html:6
|
||||||
|
msgid "Erreur 404"
|
||||||
|
msgstr "404 error"
|
||||||
|
|
||||||
|
#: shared/templates/404.html:16
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"La page à l'adresse « %(host)s%(request_path)s » n'a pas pu être trouvée."
|
||||||
|
msgstr ""
|
||||||
|
"The page at the address \"%(host)s%(request_path)s\" could not be found."
|
||||||
|
|
||||||
|
#: shared/templates/500.html:6
|
||||||
|
msgid "Erreur 500"
|
||||||
|
msgstr "500 error"
|
||||||
|
|
||||||
|
#: shared/templates/500.html:16
|
||||||
|
msgid "Erreur interne du serveur."
|
||||||
|
msgstr "Internal server error."
|
||||||
|
|
||||||
#: shared/templates/auth/create-user.html:7
|
#: shared/templates/auth/create-user.html:7
|
||||||
msgid "Créer un compte avec mot de passe"
|
msgid "Créer un compte avec mot de passe"
|
||||||
msgstr "Create a password account"
|
msgstr "Create a password account"
|
||||||
|
|
21
shared/templates/403.html
Normal file
21
shared/templates/403.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<p class="title">{% trans "Erreur 403" %}</p>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="hero is-danger">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="subtitle">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span class="icon is-size-3 mx-5">
|
||||||
|
<i class="fas fa-times-circle"></i>
|
||||||
|
</span>
|
||||||
|
<span>{% trans "Vous n'avez pas accès à cette ressource." %}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
22
shared/templates/404.html
Normal file
22
shared/templates/404.html
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<p class="title">{% trans "Erreur 404" %}</p>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="hero is-warning">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="subtitle">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span class="icon is-size-3 mx-5">
|
||||||
|
<i class="fas fa-frown"></i>
|
||||||
|
</span>
|
||||||
|
<span>{% blocktrans with host=request.get_host %}La page à l'adresse « {{ host }}{{ request_path }} » n'a pas pu être trouvée.{% endblocktrans %}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% if exception != "Resolver404" %}<p>{{ exception }}</p>{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
21
shared/templates/500.html
Normal file
21
shared/templates/500.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<p class="title">{% trans "Erreur 500" %}</p>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="hero is-danger">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="subtitle">
|
||||||
|
<span class="icon-text">
|
||||||
|
<span class="icon is-size-3 mx-5">
|
||||||
|
<i class="fas fa-bug"></i>
|
||||||
|
</span>
|
||||||
|
<span>{% trans "Erreur interne du serveur." %}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue