From 71dad0a341cb94621a7ad1a457680ab2f9519847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Tue, 2 Sep 2014 22:54:24 -0700 Subject: [PATCH] clean error pages --- templates/403.html | 2 +- templates/404.html | 2 +- templates/500.html | 2 +- templates/base_error.html | 68 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 templates/base_error.html diff --git a/templates/403.html b/templates/403.html index 8132449..18d3e85 100644 --- a/templates/403.html +++ b/templates/403.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'base_error.html' %} {% block content %} diff --git a/templates/404.html b/templates/404.html index 8e0f06c..38532c1 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'base_error.html' %} {% block content %} diff --git a/templates/500.html b/templates/500.html index 9c32ef2..526e29b 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,4 +1,4 @@ -{% extends 'base.html' %} +{% extends 'base_error.html' %} {% block content %} diff --git a/templates/base_error.html b/templates/base_error.html new file mode 100644 index 0000000..fe0254c --- /dev/null +++ b/templates/base_error.html @@ -0,0 +1,68 @@ +{% load staticfiles %} +{% load bootstrap3 %} + + + + + + + + + {% comment %}{% endcomment %} + + + + + {% block title %}PonyTracker{% endblock %} + + {% bootstrap_css %} + + {% block css %}{% endblock %} + + + {% bootstrap_javascript %} + {% block js %}{% endblock %} + + {% block media %}{% endblock %} + + + + +
+ + + + +
+ +
+ + {% bootstrap_messages %} + + {% block content %}{% endblock %} + +
+ +
+ +
+ + + {% block js_end %}{% endblock %} + +