From 5253df946b8eb45903ed6ea7e724ec6b5000b2cf Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 4 May 2021 09:57:14 +0000 Subject: [mod] option to enable or disable "proxy" button next to each result (#54) * [mod] option to enable or disable "proxy" button next to each result Closes: https://github.com/searxng/searxng/issues/51 Signed-off-by: Markus Heiser Co-authored-by: Alexandre Flament --- searx/templates/oscar/macros.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'searx/templates/oscar/macros.html') diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index fbf181518..2b27cfd28 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -39,7 +39,7 @@ {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} {%- endif -%} {%- endif -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} {%- endif -%} @@ -55,7 +55,7 @@ {%- for engine in result.engines -%} {{ engine }} {%- endfor -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} {%- endif -%} {{- "" -}} @@ -75,7 +75,7 @@ {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} {%- endif -%} {%- endif -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} {%- endif -%} {%- if result.pretty_url -%} @@ -89,7 +89,7 @@ {%- for engine in result.engines -%} {{ engine }} {%- endfor -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} {%- endif -%} -- cgit v1.2.3