2015-02-10 14:23:56 +00:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
2015-01-15 17:26:00 +00:00
|
|
|
|
|
|
|
{{ result_header(result, favicons) }}
|
|
|
|
{{ result_sub_header(result) }}
|
|
|
|
|
2019-11-25 03:21:37 +00:00
|
|
|
{% if result.seed is defined %}<p class="result-content">{{ icon('transfer') }} {{ _('Seeder') }} <span class="badge">{{ result.seed }}</span> • {{ _('Leecher') }} <span class="badge">{{ result.leech }}</span>{% endif %}
|
2015-01-15 17:26:00 +00:00
|
|
|
{% if result.filesize %}<br />{{ icon('floppy-disk') }} {{ _('Filesize') }}
|
|
|
|
<span class="badge">
|
|
|
|
{% 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 %}
|
|
|
|
</span>{% endif %}
|
|
|
|
{% if result.files %}<br />{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}
|
|
|
|
|
|
|
|
{% if result.content %}<br />{{ result.content|safe }}{% endif %}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
2015-02-10 14:23:56 +00:00
|
|
|
{% if rtl %}
|
|
|
|
{{ result_footer_rtl(result) }}
|
|
|
|
{% else %}
|
2015-01-15 17:26:00 +00:00
|
|
|
{{ result_footer(result) }}
|
2015-02-10 14:23:56 +00:00
|
|
|
{% endif %}
|