From dfb9ca527ddc7a0f85f158f056d3464d92509a4b Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 25 Jan 2022 20:12:11 +0100 Subject: [PATCH] [fix] simple theme: don't crash when the checker is enabled The macro "checkbox" in macros.html uses the macro "icon_small" from icons.html The commit imports icon_small in macros.html to fix the issue. It works because the macros in macros.html are imported with the Jinja2 context. See https://jinja.palletsprojects.com/en/3.0.x/templates/#import-visibility close #819 --- searx/templates/simple/macros.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index c1c421ab1..6c64c23ea 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -1,3 +1,5 @@ +{% from 'simple/icons.html' import icon_small %} + {% macro draw_favicon(favicon) -%} {{ favicon }}