aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/404.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2018-09-03 20:54:07 +0200
committerGitHub <noreply@github.com>2018-09-03 20:54:07 +0200
commit6ab92ddbac84f87dc598016de45845a26818dd52 (patch)
tree727f25e6a9feb8b5411d5c48f1d7bc8b9ca5f703 /ihatemoney/templates/404.html
parent24e0d8348fb5855d0255b41ec1ca9beaf233d9a6 (diff)
downloadihatemoney-mirror-6ab92ddbac84f87dc598016de45845a26818dd52.zip
ihatemoney-mirror-6ab92ddbac84f87dc598016de45845a26818dd52.tar.gz
ihatemoney-mirror-6ab92ddbac84f87dc598016de45845a26818dd52.tar.bz2
Add a handler when pages aren't found. (#379)
Fixes #356
Diffstat (limited to 'ihatemoney/templates/404.html')
-rw-r--r--ihatemoney/templates/404.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/ihatemoney/templates/404.html b/ihatemoney/templates/404.html
new file mode 100644
index 0000000..7e282c2
--- /dev/null
+++ b/ihatemoney/templates/404.html
@@ -0,0 +1,13 @@
+{% extends "layout.html" %}
+
+{% block body %}
+ <header id="header" class="row">
+ <div class="col-xs-12 col-sm-5 offset-md-2">
+ <h2>{{ _("Sorry, we were unable to find the page you've asked for.") }}</h2>
+ </div>
+ </header>
+ <main class="row home">
+ <div class="col-xs-12 col-sm-5 col-md-4 offset-md-2">
+ <a href='{{ url_for("main.home") }}'>{{ _("The best thing to do is probably to get back to the main page.")}}</a>
+ </div>
+{% endblock %}