summaryrefslogtreecommitdiff
path: root/searx/templates/default/result_templates/torrent.html
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-15 01:48:46 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-15 01:48:46 +0100
commit389fc3b8b27e52a0959c4008ad303337f1c3c827 (patch)
treea2e20ff4a218f3543356759f84a99b512ba77091 /searx/templates/default/result_templates/torrent.html
parent08df681b48aa32abfcf7420be30c669684dbc57e (diff)
Few fixes
- Whitespaces - Change a few <p> in <span> - Add RSS to allow browser detection - A few UIUX changes - Add a few more allowed translations
Diffstat (limited to 'searx/templates/default/result_templates/torrent.html')
-rw-r--r--searx/templates/default/result_templates/torrent.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/templates/default/result_templates/torrent.html b/searx/templates/default/result_templates/torrent.html
index 4c79a0a39..6a71f9ac6 100644
--- a/searx/templates/default/result_templates/torrent.html
+++ b/searx/templates/default/result_templates/torrent.html
@@ -5,5 +5,9 @@
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
<p class="url">{{ result.pretty_url }}</p>
{% if result.content %}<p class="content">{{ result.content|safe }}</p>{% endif %}
- <p><a href="{{ result.magnetlink }}" class="magnetlink">magnet link</a> - <span class="stats">Seed: {{ result.seed }}, Leech: {{ result.leech }}</span></p>
+ <p>
+ {% if result.magnetlink %}<a href="{{ result.magnetlink }}" class="magnetlink">{{ _('magnet link') }}</a>{% endif %}
+ {% if result.torrentfile %}<a href="{{ result.torrentfile }}" class="torrentfile">{{ _('torrent file') }}</a>{% endif %} -
+ <span class="stats">{{ _('Seeder') }} : {{ result.seed }}, {{ _('Leecher') }} : {{ result.leech }}</span>
+ </p>
</div>