From 22814fc1453a207f38ebabce649cc34743c06aea Mon Sep 17 00:00:00 2001 From: Eragonfr Date: Mon, 16 Apr 2018 13:27:05 +0200 Subject: [PATCH] =?UTF-8?q?404=20plus=20marante=20et=20l'erreur=20dans=20l?= =?UTF-8?q?es=20routes=20est=20corrig=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes.py | 4 ++-- app/templates/base/errors.html | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 7c7bcb6..06ad4b1 100644 --- a/app/routes.py +++ b/app/routes.py @@ -78,6 +78,6 @@ def errors(error): return redirect(url_for('index')) login_user(user, remember=form.remember_me.data) try: - return render_template("base/errors.html.j2", error_code = error, form=form), error + return render_template("base/errors.html", error_code = error, form=form), error except: - return render_template("base/errors.html.j2", error_code = error.code, form=form), error.code + return render_template("base/errors.html", error_code = error.code, form=form), error.code diff --git a/app/templates/base/errors.html b/app/templates/base/errors.html index 3d77bcd..53f80d1 100644 --- a/app/templates/base/errors.html +++ b/app/templates/base/errors.html @@ -13,6 +13,27 @@ Forbidden : La page vous est interdit. {% elif error_code == 404 %} Not Found : La page n'existe pas ou plus, si vous avez rentré l'url à la main vérifiez de ne pas vous être trompé. +
      /|   /‾‾‾‾‾‾‾\        /|     |\         |   /‾‾‾‾‾\   –––––––––
+     / |  /         \      / |     | \        |  /       \      |
+    /  |  |         |     /  |     |  \       | /         \     |
+   /   |  |         |    /   |     |   \      | |         |     |
+  /    |  |         |   /    |     |    \     | |         |     |
+ /     |  |         |  /     |     |     \    | |         |     |
+/______|_ |         | /______|_    |      \   | |         |     |
+       |  |         |        |     |       \  | \         /     |
+       |  \         /        |     |        \ |  \       /      |
+       |   \_______/         |     |         \|   \_____/       |
+
+|‾‾‾‾‾‾‾‾‾‾   /‾‾‾‾‾\   |         | |\         | |‾‾‾‾‾‾‾\
+|            /       \  |         | | \        | |        \
+|           /         \ |         | |  \       | |         \
+|           |         | |         | |   \      | |         |
+|–––––––    |         | |         | |    \     | |         |
+|           |         | |         | |     \    | |         |
+|           |         | |         | |      \   | |         |
+|           \         / \         / |       \  | |         /
+|            \       /   \       /  |        \ | |        /
+|             \_____/     \_____/   |         \| |_______/
{% elif error_code == 418 %} I’m a teapot : Je suis une théière {% elif error_code == 500 %}