From 63ac10aad4d4b118d161bba0b5a3b1abdc39c514 Mon Sep 17 00:00:00 2001 From: Konrad Mohrfeldt Date: Mon, 23 Jan 2012 00:49:53 +0100 Subject: [PATCH 1/2] added exception templates. fixes #74 --- k4ever/main/templates/403.html | 15 +++++++++++++++ k4ever/main/templates/404.html | 17 +++++++++++++++++ k4ever/main/templates/500.html | 31 +++++++++++++++++++++++++++++++ k4ever/main/templates/base.html | 4 +++- 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 k4ever/main/templates/403.html create mode 100644 k4ever/main/templates/404.html create mode 100644 k4ever/main/templates/500.html diff --git a/k4ever/main/templates/403.html b/k4ever/main/templates/403.html new file mode 100644 index 0000000..a2473c8 --- /dev/null +++ b/k4ever/main/templates/403.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% comment %} +# This file is part of k4ever, a point-of-sale system +# Contact............ +# Website............ http://k4ever.someserver.de/ +# Bug tracker........ http://k4ever.someserver.de/report +# +# Licensed under GNU Affero General Public License v3 or later +{% endcomment %} + +{% block "content" %} +

Whoops! Wir glauben du gehörst hier nicht hin...

+

...zumindest sagt uns das dein Ausweis. Wie dem auch sei: Bis hierhin und nicht weiter

+{% endblock %} \ No newline at end of file diff --git a/k4ever/main/templates/404.html b/k4ever/main/templates/404.html new file mode 100644 index 0000000..e3431a9 --- /dev/null +++ b/k4ever/main/templates/404.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% comment %} +# This file is part of k4ever, a point-of-sale system +# Contact............ +# Website............ http://k4ever.someserver.de/ +# Bug tracker........ http://k4ever.someserver.de/report +# +# Licensed under GNU Affero General Public License v3 or later +{% endcomment %} + +{% block "content" %} +

Whoops! Da ist was schiefgegangen

+

Die Seite, die du angefordert hast, konnte nicht gefunden werden.

+ +

Zahllose Ponies sind bereits auf der Suche nach ihr.

+{% endblock %} \ No newline at end of file diff --git a/k4ever/main/templates/500.html b/k4ever/main/templates/500.html new file mode 100644 index 0000000..f9eb85b --- /dev/null +++ b/k4ever/main/templates/500.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% comment %} +# This file is part of k4ever, a point-of-sale system +# Contact............ +# Website............ http://k4ever.someserver.de/ +# Bug tracker........ http://k4ever.someserver.de/report +# +# Licensed under GNU Affero General Public License v3 or later +{% endcomment %} + +{% block head %} + + {% block extrastyle %}{% endblock %} + + + + + + +{% endblock head %} + +{% block "content" %} +

Whoops! Da ist was schiefgegangen

+

Bei der Bearbeitung deiner Anfrage ist ein Fehler aufgetreten für den du nichts kannst. Sorry!

+ +

Bitte nutze den Zurück-Button deines Browsers um zurückzufahren.

+{% endblock %} diff --git a/k4ever/main/templates/base.html b/k4ever/main/templates/base.html index 96e2da2..a496239 100644 --- a/k4ever/main/templates/base.html +++ b/k4ever/main/templates/base.html @@ -11,11 +11,12 @@ + {% block head %} {% block extrastyle %}{% endblock %} @@ -23,6 +24,7 @@ {% block extrahead %}{% endblock %} + {% endblock head %} Freitagsrundenkasse{% block "title" %}{% endblock %} From 3be9d20a581239e94d609ad6503df0d458b549b3 Mon Sep 17 00:00:00 2001 From: Konrad Mohrfeldt Date: Mon, 23 Jan 2012 00:50:35 +0100 Subject: [PATCH 2/2] remove Freitagsrunden-specific content from template --- k4ever/main/templates/registration/loginForm.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/k4ever/main/templates/registration/loginForm.html b/k4ever/main/templates/registration/loginForm.html index a0355df..13dfca2 100644 --- a/k4ever/main/templates/registration/loginForm.html +++ b/k4ever/main/templates/registration/loginForm.html @@ -29,8 +29,3 @@ - -
-

Das Kassensystem ist 'Aktiv' - nutzt euren Frunden-Account

-
-