diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-05-04 09:57:14 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-04 11:57:14 +0200 |
| commit | 5253df946b8eb45903ed6ea7e724ec6b5000b2cf (patch) | |
| tree | 84ac8d415555d052b61be985ab8f7ebc0d5b93d4 /searx/templates/oscar/macros.html | |
| parent | b646050f6e47eed52a2b1564427ae199a0c92341 (diff) | |
[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 <markus.heiser@darmarit.de>
Co-authored-by: Alexandre Flament <alex@al-f.net>
Diffstat (limited to 'searx/templates/oscar/macros.html')
| -rw-r--r-- | searx/templates/oscar/macros.html | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ <small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }}</small> {%- endif -%} {%- endif -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }}</small> {%- endif -%} </div> @@ -55,7 +55,7 @@ {%- for engine in result.engines -%} <span class="label label-default">{{ engine }}</span> {%- endfor -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small> {%- endif -%} </div>{{- "" -}} @@ -75,7 +75,7 @@ <small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }}</small> {%- endif -%} {%- endif -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }}</small> {%- endif -%} {%- if result.pretty_url -%} @@ -89,7 +89,7 @@ {%- for engine in result.engines -%} <span class="label label-default">{{ engine }}</span> {%- endfor -%} - {%- if proxify -%} + {%- if proxify and proxify_results -%} <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small> {%- endif -%} <div class="external-link">{{ result.pretty_url }}</div> |