From a5f401e6f5dc5e5c30b56ecca8deac092bc1594e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 5 Sep 2018 16:53:37 +0200 Subject: Improve 500/400 eroor page --- ishtar_common/templates/404.html | 20 ++++---------------- ishtar_common/templates/500.html | 24 +++++++++++++++++++----- 2 files changed, 23 insertions(+), 21 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/404.html b/ishtar_common/templates/404.html index f2c57d496..647c6df8c 100644 --- a/ishtar_common/templates/404.html +++ b/ishtar_common/templates/404.html @@ -1,17 +1,5 @@ -{% load i18n %} - - - - {% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} - - - - -
-

{% trans "Page not found" %}

-

{% trans "Back to main page" %}

-
- - - +{% extends "500.html" %} +{% load i18n %}{% block content %} +

{% trans "Page not found" %}

+{% endblock %} diff --git a/ishtar_common/templates/500.html b/ishtar_common/templates/500.html index dbe2278a7..fb28f9169 100644 --- a/ishtar_common/templates/500.html +++ b/ishtar_common/templates/500.html @@ -2,15 +2,29 @@ - {% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} + <link rel="stylesheet" href="{{STATIC_URL}}bootstrap/bootstrap.css?ver={{VERSION}}"> + <link rel="stylesheet" href="{{STATIC_URL}}media/styles.css?ver={{VERSION}}"> + <title> + {% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} -
-

{% trans "An error has occured. The support team has been warned." %}

-

{% trans "Back to main page" %}

-
+ +
+ {% block content %} +

{% trans "An error has occured. The support team has been warned." %}

+ {% endblock %} +

{% trans "Back to main page" %}

+
+ -- cgit v1.2.3