From 7733a91b684fb3cce0e94eb1b177534e005e5fcc Mon Sep 17 00:00:00 2001 From: Burathar Date: Sun, 26 Sep 2021 15:38:42 +0200 Subject: [PATCH] Improve 'back' funcitonality --- biscd/biscd/templates/400.html | 4 ++-- biscd/biscd/templates/401.html | 6 +++--- biscd/biscd/templates/404.html | 4 ++-- biscd/biscd/templates/500.html | 4 ++-- biscd/biscd/templates/base_error.html | 12 ++++++++++++ 5 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 biscd/biscd/templates/base_error.html diff --git a/biscd/biscd/templates/400.html b/biscd/biscd/templates/400.html index 4fb49b0..7ca21b6 100644 --- a/biscd/biscd/templates/400.html +++ b/biscd/biscd/templates/400.html @@ -1,8 +1,8 @@ -{% extends "base.html" %} +{% extends "base_error.html" %} {% block app_content %}

400 Bad Request

-

Back

+

Back

Error Message:

{{ error }} diff --git a/biscd/biscd/templates/401.html b/biscd/biscd/templates/401.html index 371ac59..b78d9fb 100644 --- a/biscd/biscd/templates/401.html +++ b/biscd/biscd/templates/401.html @@ -1,6 +1,6 @@ -{% extends "base.html" %} +{% extends "base_error.html" %} {% block app_content %}

401 Unauthorized

-

Back

-{% endblock %} \ No newline at end of file +

Back

+{% endblock %} diff --git a/biscd/biscd/templates/404.html b/biscd/biscd/templates/404.html index 71be96a..765cedd 100644 --- a/biscd/biscd/templates/404.html +++ b/biscd/biscd/templates/404.html @@ -1,6 +1,6 @@ -{% extends "base.html" %} +{% extends "base_error.html" %} {% block app_content %}

404 Page Not Found

-

Back

+

Back

{% endblock %} \ No newline at end of file diff --git a/biscd/biscd/templates/500.html b/biscd/biscd/templates/500.html index d4336d9..1aec127 100644 --- a/biscd/biscd/templates/500.html +++ b/biscd/biscd/templates/500.html @@ -1,6 +1,6 @@ -{% extends "base.html" %} +{% extends "base_error.html" %} {% block app_content %}

500 Internal Server Error

-

Back

+

Back

{% endblock %} \ No newline at end of file diff --git a/biscd/biscd/templates/base_error.html b/biscd/biscd/templates/base_error.html new file mode 100644 index 0000000..0310f0f --- /dev/null +++ b/biscd/biscd/templates/base_error.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block scripts %} + +{% endblock %} \ No newline at end of file