diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-12-05 21:23:06 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-12-05 21:23:06 +0000 |
commit | b3aa99f008f7b34772e296eaa45a7457a41beea6 (patch) | |
tree | 14881502ed7dd298298095853b0f23e4f763a584 /templates/errors/generic.html | |
parent | bb97b7c862088e09e29f212e8ca124271f806cca (diff) | |
download | troggle-b3aa99f008f7b34772e296eaa45a7457a41beea6.tar.gz troggle-b3aa99f008f7b34772e296eaa45a7457a41beea6.tar.bz2 troggle-b3aa99f008f7b34772e296eaa45a7457a41beea6.zip |
Better error msgs for bad slugs
Diffstat (limited to 'templates/errors/generic.html')
-rw-r--r-- | templates/errors/generic.html | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/templates/errors/generic.html b/templates/errors/generic.html index 19bed46..0f2e876 100644 --- a/templates/errors/generic.html +++ b/templates/errors/generic.html @@ -1,35 +1,48 @@ {% extends 'base.html' %} -{% block title %}Website Error - {% endblock %} +{% block title %}Troggle Error - Generic{% endblock %} {% block content %} <div class='middle'> - <h2>Website Error</h2> + <h2>Troggle Error</h2> </div> -<div style='width: 300px;' class='middle3 login'> - <div class='align-center'> +<div class='middle3 login'> <div class='space'></div> <div class='align-center'> - <h3>There has been an error.</h3> - - + <h3>There has been an error. This is either bad data or a bug in the software.</h3> + <h4> + <font color="red"> {% if message %} {{message}} {% else %} <p>We are terribly sorry but an unknown fault has occurred. </p> - {% endif %}) + {% endif %} + </font> + </h4> + <div class='space'><p> </div> + + <h3>What you should do now</h3> + <p>Please report the error by emailing the nerds at + <a href="mailto:expo-tech@lists.wookware.org">expo-tech@lists.wookware.org</a> with this information: + <ol> + <li>The error message written in <font color="red">red</font> above. + <li>The previous page URL: <font color="red"> +<script type="text/javascript"> + document.write(document.referrer); +</script></font> + <li>Go back to this previous page <script type="text/javascript"> + document.write("<a href='",document.referrer,"'>",document.referrer,"</a>"); + </script> + and see if you can tell whether the bad page reference was in HTML text which had been written manually, or whether it appeared to be a programming error. + </ol> </div> </div> </div> - - - - {% endblock %}
\ No newline at end of file |