summaryrefslogtreecommitdiff
path: root/searx/templates/oscar
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-10-17 00:22:41 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-10-17 00:23:15 +0200
commit1be6e72d517c1651fc466d3222a23dbda0a53c2c (patch)
treef4b25094ada5fafbf08f0d6506b267fb182d24ba /searx/templates/oscar
parent19a6ca0b68839e8d8903e99c336e1c1b1df624e1 (diff)
downloadsearxng-1be6e72d517c1651fc466d3222a23dbda0a53c2c.tar.gz
searxng-1be6e72d517c1651fc466d3222a23dbda0a53c2c.zip
[enh] add result proxy support - #707
Diffstat (limited to 'searx/templates/oscar')
-rw-r--r--searx/templates/oscar/macros.html6
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 %}