summaryrefslogtreecommitdiffstats
path: root/templates/errors/badslug.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/errors/badslug.html')
-rw-r--r--templates/errors/badslug.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/templates/errors/badslug.html b/templates/errors/badslug.html
new file mode 100644
index 0000000..bd507fa
--- /dev/null
+++ b/templates/errors/badslug.html
@@ -0,0 +1,63 @@
+{% extends 'base.html' %}
+
+{% block title %}Troggle Error - Bad Slug{% endblock %}
+{% block content %}
+
+<div class='middle'>
+ <h2>Bad Slug Error</h2>
+</div>
+
+
+<div class='middle3 login'>
+ <div class='space'></div>
+ <div class='align-center'>
+ <h3>There has been a Troggle error. </h3>
+ <h4>
+ A Cave or an Entrance has been referred to using a label (a 'slug') which does not work.
+ <p>This is the bad slug:
+
+ <font color="red">
+ {% if badslug %}
+ {{badslug}}
+ {% else %}
+ <p>We are terribly sorry but a fault has occurred. Something in the system is referring to something else which does not exist. </p>
+
+ {% endif %}
+ </font>
+ <p>
+ This is the previous page which had the bad slug reference on it: <font color="red">
+<script type="text/javascript">
+ document.write(document.referrer);
+</script>
+</font>
+ </h4>
+ <p>
+<p>It is also possible that the cave description page is being viewed using an alternative URL,
+so that the local links in the page to other parts of the cave do not work.
+<br>
+e.g. /cave/1623-161 is not the correct way of looking at Kaninchenhohle,
+<br>
+you should be using <br>
+/1623/161/top.htm instead.
+<p>If that is the case, tell a nerd that we haven't fixed the fault that we thought we had fixed.
+
+ <div class='space'><p>&nbsp;</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 bad slug text written in <font color="red">red</font> above.
+ <li>The previous page URL, also written in <font color="red">red</font> above
+ <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 slug 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