From: Jérémy Fabre Date: Tue, 8 Nov 2016 13:41:23 +0000 (+0100) Subject: Errors 400 and 500 templates X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e3ef9f3d3f8f5b63534f3d0596efcefd77d0c9b6;p=mezzo.git Errors 400 and 500 templates --- 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 %}