From 9fcbfb90339bb1194873d8dca00b655aeea9d622 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Wed, 22 May 2024 09:37:51 +0200 Subject: [PATCH] Add templates for 404, 500 --- templates/404.html | 11 +++++++++++ templates/500.html | 12 ++++++++++++ theme/templates/bare_base.html | 24 ++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/500.html create mode 100644 theme/templates/bare_base.html diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..f46ba40 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,11 @@ +{% extends "bare_base.html" %} + +{% block title %}404 Not Found{% endblock %} + +{% block content %} +
+

Not Found

+ +
The requested page could not be found with exception "{{ exception }}".
+
+{% endblock %} diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..dda273e --- /dev/null +++ b/templates/500.html @@ -0,0 +1,12 @@ +{% extends "bare_base.html" %} + +{% block title %}500 Server Error{% endblock %} + +{% block content %} +
+

500 Server Error

+ +
+ There was an internal server error. +
+{% endblock %} diff --git a/theme/templates/bare_base.html b/theme/templates/bare_base.html new file mode 100644 index 0000000..f0c2721 --- /dev/null +++ b/theme/templates/bare_base.html @@ -0,0 +1,24 @@ +{% load static tailwind_tags %}{# copy of base.html, but without variables (and hence no menu), for use in contextless templates (e.g. 500.html) #} + + + {% block title %}Bugsink{% endblock %} + + + + {% tailwind_preload_css %} + {% tailwind_css %} + + + +
+
+ +
Bugsink
+
+
+ {% block content %}{% endblock %} +
+
+ {% block extra_js %}{% endblock %} + +