Skip to content
Snippets Groups Projects
Commit 6e2e2fa4 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'maintenace_mode' into 'master'

Add custom template for maintenace mode.

See merge request Teckids/BiscuIT/BiscuIT-ng!30
parents 9b9c52a6 02d90c4a
No related branches found
No related tags found
1 merge request!30Add custom template for maintenace mode.
......@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: BiscuIT - School Information System (SIS)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-26 19:58+0200\n"
"PO-Revision-Date: 2019-08-26 19:59+0200\n"
"POT-Creation-Date: 2019-08-27 12:50+0200\n"
"PO-Revision-Date: 2019-08-27 14:45+0200\n"
"Last-Translator: Tom Teichler <tom.teichler@teckids.org>\n"
"Language-Team: \n"
"Language: de\n"
......@@ -161,17 +161,32 @@ msgstr "Langer Name der Gruppe"
msgid "Short name of group"
msgstr "Kurzer Name der Gruppe"
#: settings.py:177
#: settings.py:187
msgid "German"
msgstr "Deutsch"
#: settings.py:178
#: settings.py:188
msgid "English"
msgstr "Englisch"
#: templates/503.html:9
msgid ""
"\n"
" The maintenance mode is currently enabled. Please try again later.\n"
" "
msgstr ""
"\n"
" Der Wartungsmodus ist aktuell aktiviert. Bitte versuchen Sie es "
"später erneut.\n"
" "
#: templates/core/edit_person.html:4 templates/core/person_full.html:11
msgid "Edit person"
msgstr "Person editieren"
#: templates/core/group_full.html:11
msgid "Edit group"
msgstr "Gruppe editiern"
msgstr "Gruppe editieren"
#: templates/core/group_full.html:14
msgid "Details"
......@@ -203,10 +218,6 @@ msgstr ""
msgid "List of all groups"
msgstr "Liste aller Gruppen"
#: templates/core/person_full.html:11
msgid "Edit person"
msgstr "Person editiern"
#: templates/core/person_full.html:14
msgid "Contact details"
msgstr "Kontaktdetails"
......@@ -281,7 +292,7 @@ msgstr ""
msgid "Assorted"
msgstr "Unsortiert"
#: views.py:28
#: views.py:29
msgid ""
"This page does not exist. If you were redirected by a link on an external "
"page, it is possible that that link was outdated."
......@@ -290,18 +301,28 @@ msgstr ""
"externen Seite hierher gelangt sind, ist es möglich, dass dieser veraltet "
"war."
#: views.py:29
#: views.py:30
msgid "Page not found"
msgstr "Seite nicht gefunden"
#: views.py:31
#: views.py:32
msgid "Internal server error"
msgstr "Interner Serverfehler"
#: views.py:32
#: views.py:33
msgid "An unexpected error has occurred."
msgstr "Ein Fehler ist aufgetreten."
#: views.py:157
#: views.py:35
msgid "Maintenance mode"
msgstr "Wartungsmodus"
#: views.py:36
msgid "The maintenance mode is currently enabled. Please try again later."
msgstr ""
"Der Wartungsmodus ist aktuell aktiviert. Bitte versuchen Sie es später "
"erneut."
#: views.py:161
msgid "The person has been saved."
msgstr "Die Person wurde gespeichert."
{% extends "core/base.html" %}
{% load bootstrap4 i18n staticfiles %}
{% block content %}
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>503 - Maintenance mode</h1>
<p class="lead">
{% blocktrans %}
The maintenance mode is currently enabled. Please try again later.
{% endblocktrans %}
</p>
</div>
</div>
{% endblock %}
......@@ -30,7 +30,6 @@ urlpatterns = [
# Custom error pages
handler404 = views.error_handler(404)
handler500 = views.error_handler(500)
handler503 = views.error_handler(503)
# Serve javascript-common if in development
if settings.DEBUG:
......
......@@ -31,9 +31,6 @@ def error_handler(status: int) -> Callable[..., HttpResponse]:
elif status == 500:
context['caption'] = _('Internal server error')
context['message'] = _('An unexpected error has occurred.')
elif status == 503:
context['caption'] = _('Maintenance mode')
context['message'] = _('The maintenance mode is currently enabled. Please try again later.')
return render(request, 'error.html', context, status=status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment