logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

torrent.html (1326B)


  1. {% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
  2. {{ result_header(result, favicons) }}
  3. {{ result_sub_header(result) }}
  4. <p class="result-content">{{ icon('transfer') }} {{ _('Seeder') }} <span class="badge">{{ result.seed }}</span> &bull; {{ _('Leecher') }} <span class="badge">{{ result.leech }}</span>
  5. {% if result.filesize %}<br />{{ icon('floppy-disk') }} {{ _('Filesize') }}
  6. <span class="badge">
  7. {% if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }}
  8. {% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kiB') }}
  9. {% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MiB') }}
  10. {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GiB') }}
  11. {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif %}
  12. </span>{% endif %}
  13. {% if result.files %}<br />{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}
  14. {% if result.content %}<br />{{ result.content|safe }}{% endif %}
  15. </p>
  16. {% if rtl %}
  17. {{ result_footer_rtl(result) }}
  18. {% else %}
  19. {{ result_footer(result) }}
  20. {% endif %}