Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
3dda651d
Unverified
Commit
3dda651d
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Add custom template for maintenace mode.
parent
511ff304
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!30
Add custom template for maintenace mode.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
biscuit/core/locale/de_DE/LC_MESSAGES/django.po
+34
-13
34 additions, 13 deletions
biscuit/core/locale/de_DE/LC_MESSAGES/django.po
biscuit/core/templates/503.html
+15
-0
15 additions, 0 deletions
biscuit/core/templates/503.html
biscuit/core/views.py
+0
-3
0 additions, 3 deletions
biscuit/core/views.py
with
49 additions
and
16 deletions
biscuit/core/locale/de_DE/LC_MESSAGES/django.po
+
34
−
13
View file @
3dda651d
...
...
@@ -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-2
6
1
9
:5
8
+0200\n"
"PO-Revision-Date: 2019-08-2
6
1
9
:5
9
+0200\n"
"POT-Creation-Date: 2019-08-2
7
1
2
:5
0
+0200\n"
"PO-Revision-Date: 2019-08-2
7
1
2
:5
1
+0200\n"
"Last-Translator: Tom Teichler <tom.teichler@teckids.org>\n"
"Language-Team: \n"
"Language: de\n"
...
...
@@ -161,14 +161,29 @@ msgstr "Langer Name der Gruppe"
msgid "Short name of group"
msgstr "Kurzer Name der Gruppe"
#: settings.py:1
7
7
#: settings.py:1
8
7
msgid "German"
msgstr "Deutsch"
#: settings.py:1
7
8
#: settings.py:1
8
8
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 editiern"
#: templates/core/group_full.html:11
msgid "Edit group"
msgstr "Gruppe editiern"
...
...
@@ -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:2
8
#: views.py:2
9
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:3
1
#: views.py:3
2
msgid "Internal server error"
msgstr "Interner Serverfehler"
#: views.py:3
2
#: views.py:3
3
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."
This diff is collapsed.
Click to expand it.
biscuit/core/templates/503.html
0 → 100644
+
15
−
0
View file @
3dda651d
{% 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 %}
This diff is collapsed.
Click to expand it.
biscuit/core/views.py
+
0
−
3
View file @
3dda651d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment