浏览代码

Revert some wrong merge to allow torrents links to be visible

Cqoicebordel 10 年前
父节点
当前提交
032f9bb1c9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      searx/templates/oscar/macros.html

+ 2
- 0
searx/templates/oscar/macros.html 查看文件

18
 {% macro result_sub_header(result) -%}
18
 {% macro result_sub_header(result) -%}
19
     {% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
19
     {% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
20
     <small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}">{{ icon('link') }} {{ _('cached') }}</a></small>
20
     <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 %}
21
 {%- endmacro %}
23
 {%- endmacro %}
22
 
24
 
23
 <!-- Draw result footer -->
25
 <!-- Draw result footer -->