diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-10-17 00:22:41 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-10-17 00:23:15 +0200 |
commit | 1be6e72d517c1651fc466d3222a23dbda0a53c2c (patch) | |
tree | f4b25094ada5fafbf08f0d6506b267fb182d24ba /searx/templates | |
parent | 19a6ca0b68839e8d8903e99c336e1c1b1df624e1 (diff) | |
download | searxng-1be6e72d517c1651fc466d3222a23dbda0a53c2c.tar.gz searxng-1be6e72d517c1651fc466d3222a23dbda0a53c2c.zip |
[enh] add result proxy support - #707
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/macros.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 06881db02..221300fe4 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -33,6 +33,9 @@ <span class="label label-default">{{ engine }}</span>
{% endfor %}
<small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}</small>
+ {% if proxify %}
+ <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small>
+ {% endif %}
</div>
<div class="text-muted"><small>{{ result.pretty_url }}</small></div>
{%- endmacro %}
@@ -44,6 +47,9 @@ <span class="label label-default">{{ engine }}</span>
{% endfor %}
<small>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}</small>
+ {% if proxify %}
+ <small>{{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}</small>
+ {% endif %}
<div class="text-muted"><small>{{ result.pretty_url }}</small></div>
{%- endmacro %}
|