From b424d877aa57d9832a75f0757f769e60ee916560 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 10 Jan 2013 19:44:29 +0100 Subject: [PATCH] Custom templates to correctly display 404 and 500 errors. see #356 --- modoboa/templates/404.html | 4 ++++ modoboa/templates/500.html | 4 ++++ modoboa/templates/layout_simple.html | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 modoboa/templates/404.html create mode 100644 modoboa/templates/500.html create mode 100644 modoboa/templates/layout_simple.html diff --git a/modoboa/templates/404.html b/modoboa/templates/404.html new file mode 100644 index 000000000..d798468b6 --- /dev/null +++ b/modoboa/templates/404.html @@ -0,0 +1,4 @@ +{% extends "layout_simple.html" %}{% load i18n %} +{% block content %} +

{% trans "The requested page does not exist." %}

+{% endblock %} diff --git a/modoboa/templates/500.html b/modoboa/templates/500.html new file mode 100644 index 000000000..afff91d1b --- /dev/null +++ b/modoboa/templates/500.html @@ -0,0 +1,4 @@ +{% extends "layout_simple.html" %}{% load i18n %} +{% block content %} +

{% trans "An internal error occured." %}

+{% endblock %} diff --git a/modoboa/templates/layout_simple.html b/modoboa/templates/layout_simple.html new file mode 100644 index 000000000..fba149820 --- /dev/null +++ b/modoboa/templates/layout_simple.html @@ -0,0 +1,22 @@ + + + + + {% block pagetitle %}{% endblock %} + + + + + + {% url django.views.i18n.javascript_catalog as catalog_url %} + + + + +
+
+ {% block content %}{% endblock %} +
+
+ +