diff options
Diffstat (limited to 'searx/templates/simple/result_templates/torrent.html')
| -rw-r--r-- | searx/templates/simple/result_templates/torrent.html | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/searx/templates/simple/result_templates/torrent.html b/searx/templates/simple/result_templates/torrent.html index befad2c89..0c870ae11 100644 --- a/searx/templates/simple/result_templates/torrent.html +++ b/searx/templates/simple/result_templates/torrent.html @@ -3,15 +3,21 @@ {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} -{% if result.magnetlink %}<p class="altlink"> • {{ result_link(result.magnetlink, icon_big('magnet-outline') + _('magnet link'), "magnetlink") }}</p>{% endif %} -{% if result.torrentfile %}<p class="altlink"> • {{ result_link(result.torrentfile, icon_big('download-alt') + _('torrent file'), "torrentfile") }}</p>{% endif %} +<p class="altlink"> + {%- if result.magnetlink %}{{ result_link(result.magnetlink, icon_big('magnet') + _('magnet link'), "magnetlink") }}{%- endif -%} + {%- if result.torrentfile %}{{ result_link(result.torrentfile, icon_big('download-alt') + _('torrent file'), "torrentfile") }}{%- endif -%} +</p> -{% if result.seed is defined %}<p class="stat"> • {{ icon_big('arrow-swap') }} {{ _('Seeder') }} <span class="badge">{{ result.seed }}</span> • {{ _('Leecher') }} <span class="badge">{{ result.leech }}</span></p>{% endif %} - -{%- if result.filesize %}<p class="stat">{{ icon_big('floppy-disk') }} {{ _('Filesize') }}<span class="badge">{{ result.filesize }}</span></p>{%- endif -%} - -{%- if result.files %}<p class="stat">{{ icon_big('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span></p>{% endif -%} - -{%- if result.content %}<p class="content">{{ result.content|safe }}</p>{% endif -%} +<p class="stat"> + {%- if result.seed is defined %} + {{ icon_big('seeder') }} <span class="badge">{{ result.seed }} {{ _('Seeder') }} </span> + {{ icon_big('leecher') }} <span class="badge">{{ result.leech }} {{ _('Leecher') }}</span> + {% endif %} +</p> +<p class="stat"> + {%- if result.filesize %}{{ icon_big('save') }} <span class="badge">{{ result.filesize }} {{ _('Filesize') }}</span>{%- endif -%} + {%- if result.files %}{{ icon_big('file') }} <span class="badge">{{ result.files }} {{ _('Number of Files') }}</span>{%- endif -%} +</p> +{%- if result.content %}<p class="content">{{ result.content|safe }}</p>{%- endif -%} {{- result_sub_footer(result, proxify) -}} -{{- result_footer(result) }} +{{- result_footer(result) -}} |