From d4317b5fd33961847fda17f3a94afb2f7414b657 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 17 Apr 2021 21:24:37 +0100 Subject: [PATCH] better error pages --- templates/errors/generic.html | 28 ++++++++++++++++++++++++ templates/pagenotfound.html | 41 ++++++++++++++++++++++++++++++++++- 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/templates/errors/generic.html b/templates/errors/generic.html index a626a5a..a132ec0 100644 --- a/templates/errors/generic.html +++ b/templates/errors/generic.html @@ -1,11 +1,39 @@ {% extends 'base.html' %} +{% block extrahead %} + +{% endblock %} {% block title %}Website Error - {% endblock %} {% block content %}

Website Error

+ + {% endblock%} +
diff --git a/templates/pagenotfound.html b/templates/pagenotfound.html index 514ebf3..d59ffaa 100644 --- a/templates/pagenotfound.html +++ b/templates/pagenotfound.html @@ -1,11 +1,50 @@ {% extends "expobase.html" %} +{% block extrahead %} + +{% endblock %} {% block title %}Page not found {{ path }}{% endblock %} + {% block body %}

Page not found {{ path }}

+ + + {% endblock%} +

Probably a mistake. But you can use this link

or 'Edit this page' in the menu on the left to create this page if you are logged in. -

If you can't see that option in the menu, then you are not logged in and you can't create anything. +

    +
  • If you can't see that option in the menu, then you are not logged in and you can't create anything. + +
  • You can log on or log off using the gray menu bar above. +
+ +

Did you get lost ? + + {% include "menu.html" %} {% endblock %}