{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_footer_rtl, result_link with context %} {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} {% if result.magnetlink %}
• {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink") }}
{% endif %} {% if result.torrentfile %}• {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile") }}
{% endif %} {% if result.seed is defined %}• {{ icon('arrow-swap') }} {{ _('Seeder') }} {{ result.seed }} • {{ _('Leecher') }} {{ result.leech }}
{% endif %} {%- if result.filesize %}{{ icon('floppy-disk') }} {{ _('Filesize') }} {%- if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }} {%- elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kiB') }} {%- elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MiB') }} {%- elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GiB') }} {%- else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif -%}
{%- endif -%} {%- if result.files %}{{ icon('file') }} {{ _('Number of Files') }} {{ result.files }}
{% endif -%} {%- if result.content %}{{ result.content|safe }}
{% endif -%} {{- result_sub_footer(result, proxify) -}} {{- result_footer(result) }}