From 83cda67c43ab6013210f7250f9c978137b8b7c9f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 2 Dec 2022 00:37:15 +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 a6f8fbe8c..2675ccd73 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -63,7 +63,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 8f8a7fc48..0d29c152d 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 %}
- -