From ecc32382b2eddff9a4988d1fa043081069f85e70 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 2 Dec 2022 00:37:50 +0200 Subject: [PATCH] Revert "https://www.youtube.com/watch?v=_904EvOUQ_M" This reverts commit 6d0277adc85e3e4478d950adc2da7c3997193741. --- files/routes/errors.py | 2 +- files/templates/default.html | 2 +- files/templates/header.html | 20 ++++++++++++++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index 479c6eab7..9e5e34da3 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -36,7 +36,7 @@ def error(e): if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": title, "code": e.code, "description": msg, "details": details}, e.code img = ERROR_MARSEYS.get(e.code, 'marseyl') - return render_template('errors/error.html', title=title, msg=msg, details=details, img=img), e.code + return render_template('errors/error.html', err=True, title=title, msg=msg, details=details, img=img), e.code @app.errorhandler(401) def error_401(e): diff --git a/files/templates/default.html b/files/templates/default.html index 1516ea209..84ebda9ba 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -65,7 +65,7 @@ -{% if v and v.spider %} +{% if not err and v and v.spider %} {% endif %} diff --git a/files/templates/header.html b/files/templates/header.html index 4ac748679..a26700515 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -13,6 +13,7 @@ } +{% if not err %}
{% if SITE_NAME == 'rDrama' %} {% if range(1,5) | random == 1 %} @@ -45,8 +46,17 @@ {{loggedin_counter+loggedout_counter}} people here now ({{loggedin_counter}} logged in) {% endif %}
- -