From ef54f0021267d039f7444d709296c627882d4495 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 6 Mar 2024 10:14:52 -0700 Subject: [PATCH] Only show redirects on error page if query is available The redirects portion of the error page is only needed in scenarios where the instance is rate limited, in which case the user's query is provided to the error template. If this isn't provided, it should just display the error and allow the user to redirect to the home page. Fixes #1122 --- app/templates/error.html | 165 ++++++++++++++++++++------------------- 1 file changed, 83 insertions(+), 82 deletions(-) diff --git a/app/templates/error.html b/app/templates/error.html index 99e87b3..dcaf3cf 100644 --- a/app/templates/error.html +++ b/app/templates/error.html @@ -19,87 +19,88 @@ {{ error_message }}


-

-

{{ translation['continue-search'] }}

- -
-

Other options:

- -
-

+ {% if query and translation %} +

+

{{ translation['continue-search'] }}

+ +
+

Other options:

+ +
+

+ {% endif %} Return Home