From e3ef9f3d3f8f5b63534f3d0596efcefd77d0c9b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Tue, 8 Nov 2016 14:41:23 +0100 Subject: [PATCH] Errors 400 and 500 templates --- app/templates/errors/404.html | 21 ++++++++++++--------- app/templates/errors/500.html | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/app/templates/errors/404.html b/app/templates/errors/404.html index 65788dea..2857ebbb 100644 --- a/app/templates/errors/404.html +++ b/app/templates/errors/404.html @@ -1,18 +1,21 @@ -{% extends "base.html" %} +{% extends "pages/page.html" %} {% load i18n %} {% block meta_title %} -{% trans "Page not found" %} + {% trans "Page not found" %} {% endblock %} -{% block title %} -{% trans "Page not found" %} +{% block page_class %} + custompage {% endblock %} -{% block main %} -
-

{% trans "Page not found" %}

-
{% trans "The page you requested does not exist." %}
-
+{% block page_title %} +

{% trans "Page not found" %}

+{% endblock %} + +{% block page_content %} +

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

{% endblock %} diff --git a/app/templates/errors/500.html b/app/templates/errors/500.html index 26cbb4e6..3f28106f 100644 --- a/app/templates/errors/500.html +++ b/app/templates/errors/500.html @@ -16,3 +16,25 @@
{% trans "Sorry, an error occurred." %}
{% endblock %} + +{% extends "pages/page.html" %} + +{% load i18n %} + +{% block meta_title %} + {% trans "Error" %} +{% endblock %} + +{% block page_class %} + custompage +{% endblock %} + +{% block page_title %} +

{% trans "Error" %}

+{% endblock %} + +{% block page_content %} +

+ {% trans "Sorry, an error occurred." %} +

+{% endblock %} -- 2.39.5