summaryrefslogtreecommitdiff
path: root/templates/error.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-03 19:05:25 -0400
committerczaks <marcin@6irc.net>2013-08-03 19:05:25 -0400
commita0855cdcf5634d64fbb1ba294b05c8365ce37338 (patch)
treefa1217beedf487c321405432ea746343ec6afcec /templates/error.html
parent7d5fef9ace3bba46de40604b04ea2dee1dac7cb3 (diff)
parenta3fbff225927469e68efc7ab31977736f34c7480 (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: inc/config.php inc/functions.php templates/generic_page.html templates/index.html
Diffstat (limited to 'templates/error.html')
-rw-r--r--templates/error.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/error.html b/templates/error.html
new file mode 100644
index 00000000..3b8eb693
--- /dev/null
+++ b/templates/error.html
@@ -0,0 +1,18 @@
+<div style="text-align:center">
+ <h2 style="margin:20px 0">{{ message }}</h2>
+ {% if board %}
+ <p>
+ <a href="{{ config.root }}{% if mod %}{{ config.file_mod }}?/{% endif %}{{ board.dir }}{{ config.file_index }}">
+ {% trans 'Go back' %}
+ </a>
+ </p>
+ {% endif %}
+</div>
+{% if debug and config.debug %}
+ <hr>
+ <h3>{% trans 'Error information' %}</h3>
+ <pre style="white-space:pre-wrap;font-size: 10px;">
+ {{ debug }}
+ </pre>
+ <hr>
+{% endif %} \ No newline at end of file