]> git.parisson.com Git - mezzo.git/commitdiff
Errors 400 and 500 templates
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 8 Nov 2016 13:41:23 +0000 (14:41 +0100)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Tue, 8 Nov 2016 13:41:23 +0000 (14:41 +0100)
app/templates/errors/404.html
app/templates/errors/500.html

index 65788dea7ce1603aac9c57700b3689af66e3f66e..2857ebbb101fa010527bdebd77b3f5076d3885a4 100644 (file)
@@ -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 %}
-<div class="panel panel-danger">
-       <div class="panel-heading"><h3 class="panel-title">{% trans "Page not found" %}</h3></div>
-       <div class="panel-body">{% trans "The page you requested does not exist." %}</div>
-</div>
+{% block page_title %}
+       <h1 class="dotted">{% trans "Page not found" %}</h1>
+{% endblock %}
+
+{% block page_content %}
+       <p>
+               {% trans "The page you requested does not exist." %}
+       </p>
 {% endblock %}
index 26cbb4e6be67268d3396e6eeff713b1aad41e79c..3f28106f3575f721d2cf15fee30814f64815862f 100644 (file)
        <div class="panel-body">{% trans "Sorry, an error occurred." %}</div>
 </div>
 {% endblock %}
+
+{% extends "pages/page.html" %}
+
+{% load i18n %}
+
+{% block meta_title %}
+       {% trans "Error" %}
+{% endblock %}
+
+{% block page_class %}
+       custompage
+{% endblock %}
+
+{% block page_title %}
+       <h1 class="dotted">{% trans "Error" %}</h1>
+{% endblock %}
+
+{% block page_content %}
+       <p>
+               {% trans "Sorry, an error occurred." %}
+       </p>
+{% endblock %}