Commit 17e3bdf6ebae0aa7b10480e3364d56f0e9b6eb1a

Authored by Sergio Oliveira
1 parent 4aa3d7ab

Improving error pages

src/templates/404.html
  1 +{% extends "base.html" %}
1 2 {% load i18n %}
2 3  
3   -<h1>{% trans "Not found. Keep searching! :)" %}</h1>
  4 +{% block header %}
  5 + {% include "includes/big_header.html" %}
  6 +{% endblock %}
  7 +
  8 +{% block main-content %}
  9 + <h1>{% trans "Not found. Keep searching! :)" %}</h1>
  10 +{% endblock %}
... ...
src/templates/500.html
  1 +{% extends "base.html" %}
1 2 {% load i18n %}
2 3  
3   -<h1>{% trans "Ooopz... something went wrong!" %}</h1>
  4 +{% block header %}
  5 + {% include "includes/big_header.html" %}
  6 +{% endblock %}
  7 +
  8 +{% block main-content %}
  9 + <h1>{% trans "Ooopz... something went wrong!" %}</h1>
  10 +{% endblock %}
... ...
src/templates/home.html
... ... @@ -6,13 +6,7 @@
6 6 {% endblock %}
7 7  
8 8 {% block header %}
9   - <div class="row hidden-xs hidden-sm">
10   - <div class="col-lg-2 col-lg-offset-5 text-center">
11   - <img src="{{ STATIC_URL }}img/logo.png" />
12   - </div>
13   - </div>
14   -
15   - <h3 class="text-center hidden-xs hidden-sm">{% trans "INTERLEGIS COMMUNITIES" %}</h3>
  9 + {% include "includes/big_header.html" %}
16 10 {% endblock %}
17 11  
18 12 {% block main-content %}
... ...
src/templates/includes/big_header.html 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +{% load i18n %}
  2 +
  3 +<div class="row hidden-xs hidden-sm">
  4 + <div class="col-lg-2 col-lg-offset-5 text-center">
  5 + <img src="{{ STATIC_URL }}img/logo.png" />
  6 + </div>
  7 +</div>
  8 +
  9 +<h3 class="text-center hidden-xs hidden-sm">{% trans "INTERLEGIS COMMUNITIES" %}</h3>
... ...