on master help sign in
Revert some wrong merge to allow torrents links to be visible
commit032f9bb1c9f8b9b949cd294b47cc63bae5c89ef2 authorCqoicebordel <Cqoicebordel@users.noreply.github.com> dateWed 21 Jan 2015, 18:03 (12 years ago) parent85dcfa2
1 file changed+2
searx/templates/oscar/macros.html+2
searx/templates/oscar/macros.html+2
@@ -18,6 +18,8 @@
1818{% macro result_sub_header(result) -%}
1919 {% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
2020 <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}">{{ icon('link') }} {{ _('cached') }}</a></small>
21+ {% if result.magnetlink %}<small> &bull; <a href="{{ result.magnetlink }}" class="magnetlink">{{ icon('magnet') }} {{ _('magnet link') }}</a></small>{% endif %}
22+ {% if result.torrentfile %}<small> &bull; <a href="{{ result.torrentfile }}" class="torrentfile">{{ icon('download-alt') }} {{ _('torrent file') }}</a></small>{% endif %}
2123{%- endmacro %}
2224
2325<!-- Draw result footer -->