From 17e3bdf6ebae0aa7b10480e3364d56f0e9b6eb1a Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Fri, 18 Oct 2013 14:34:18 -0300 Subject: [PATCH] Improving error pages --- src/templates/404.html | 9 ++++++++- src/templates/500.html | 9 ++++++++- src/templates/home.html | 8 +------- src/templates/includes/big_header.html | 9 +++++++++ 4 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 src/templates/includes/big_header.html diff --git a/src/templates/404.html b/src/templates/404.html index 2366d31..cb4bbb5 100644 --- a/src/templates/404.html +++ b/src/templates/404.html @@ -1,3 +1,10 @@ +{% extends "base.html" %} {% load i18n %} -

{% trans "Not found. Keep searching! :)" %}

+{% block header %} + {% include "includes/big_header.html" %} +{% endblock %} + +{% block main-content %} +

{% trans "Not found. Keep searching! :)" %}

+{% endblock %} diff --git a/src/templates/500.html b/src/templates/500.html index dbf7fb2..8a5ad4c 100644 --- a/src/templates/500.html +++ b/src/templates/500.html @@ -1,3 +1,10 @@ +{% extends "base.html" %} {% load i18n %} -

{% trans "Ooopz... something went wrong!" %}

+{% block header %} + {% include "includes/big_header.html" %} +{% endblock %} + +{% block main-content %} +

{% trans "Ooopz... something went wrong!" %}

+{% endblock %} diff --git a/src/templates/home.html b/src/templates/home.html index cdfdcac..310b2d5 100644 --- a/src/templates/home.html +++ b/src/templates/home.html @@ -6,13 +6,7 @@ {% endblock %} {% block header %} - - - + {% include "includes/big_header.html" %} {% endblock %} {% block main-content %} diff --git a/src/templates/includes/big_header.html b/src/templates/includes/big_header.html new file mode 100644 index 0000000..ad41ba2 --- /dev/null +++ b/src/templates/includes/big_header.html @@ -0,0 +1,9 @@ +{% load i18n %} + + + + -- libgit2 0.21.2