From bd032b8c3bacd57ccccdc1cbeba9de25e1d5fe14 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Tue, 11 May 2021 05:52:52 +0100 Subject: [PATCH] Create error template --- borgweb/borg/templates/404.html | 32 +++---------------------------- borgweb/borg/templates/error.html | 30 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 29 deletions(-) create mode 100644 borgweb/borg/templates/error.html diff --git a/borgweb/borg/templates/404.html b/borgweb/borg/templates/404.html index 3104e0d..05b8713 100644 --- a/borgweb/borg/templates/404.html +++ b/borgweb/borg/templates/404.html @@ -1,30 +1,4 @@ -{% extends "borg/base.html" %} -{% load static %} - -{% block title %}404: Not Found{% endblock %} - -{% block style %} - body { - background-color: aliceblue; - } - - .vertical-center { - min-height: 80%; - min-height: 80vh; - - display: flex; - align-items: center; - } -{% endblock %} - -{% block body %} - -
-
-

404: Not Found

-
-
- - -{% endblock %} +{% extends "error.html" %} +{% block title %}404: Page Not Found{% endblock %} +{% block error_message %}404: Page Not Found{% endblock %} diff --git a/borgweb/borg/templates/error.html b/borgweb/borg/templates/error.html new file mode 100644 index 0000000..36b8573 --- /dev/null +++ b/borgweb/borg/templates/error.html @@ -0,0 +1,30 @@ +{% extends "borg/base.html" %} +{% load static %} + +{% block title %}{% endblock %} + +{% block style %} + body { + background-color: aliceblue; + } + + .vertical-center { + min-height: 80%; + min-height: 80vh; + + display: flex; + align-items: center; + } +{% endblock %} + +{% block body %} + +
+
+

{% block error_message %}{% endblock %}

+
+
+ + +{% endblock %} +