{% extends 'default/layout.html.twig' %} {% block title %}{% if query %}{{ query }} - {{ 'Search' | trans }} - {% endif %}{{ name }}{% endblock %} {% block main_content %}
{% if query %}

{{ 'Search results' | trans }}

{% else %}

{{ 'Recent uploads' | trans }}

{% endif %}
{% if torrents %} {% for torrent in torrents %}

{{ torrent.file.name }}

{% if torrent.scrape.leechers > 0 and torrent.scrape.seeders == 0 %} {{ 'wanted' | trans }} {% endif %} {% if torrent.status == false %} {% endif %} {% if torrent.approved == false %} {% endif %} {% if torrent.sensitive == true %} {% endif %} {% if torrent.file.hash.v2 %} {% endif %} {% if torrent.file.hash.v1 and torrent.file.hash.v2 %} {% endif %}
{% if torrent.keywords %}
{% for keyword, quantity in torrent.keywords %} #{{ keyword }} {% endfor %}
{% endif %}
{# {{ torrent.added | format_ago }} {{ 'by' | trans }} {{ 'identicon' | trans }} #} {{ torrent.file.size | format_bytes }} {{ torrent.scrape.seeders }} {{ torrent.scrape.peers }} {{ torrent.scrape.leechers }}
{% if torrent.download.magnet.exist %} {% else %} {% endif %} {{ torrent.download.magnet.total }} {% if torrent.download.file.exist %} {% else %} {% endif %} {{ torrent.download.file.total }} {% if torrent.star.exist %} {% else %} {% endif %} {{ torrent.star.total }}
{% endfor %} {% if pagination.pages > 1 %}
{{ 'Page' | trans | lower }} {{ pagination.page }} / {{ pagination.pages }} {% if query %} {% if pagination.page > 1 %} {% if pagination.page == 2 %} {{ 'Back' | trans | lower }} {% else %} {{ 'Back' | trans | lower }} {% endif %} {% endif %} {% if pagination.page < pagination.pages %} {{ 'Next' | trans | lower }} {% endif %} {% else %} {% if pagination.page > 1 %} {% if pagination.page == 2 %} {{ 'Back' | trans | lower }} {% else %} {{ 'Back' | trans | lower }} {% endif %} {% endif %} {% if pagination.page < pagination.pages %} {{ 'Next' | trans | lower }} {% endif %} {% endif %}
{% endif %} {% else %}

{{ 'Nothing found' | trans }}

{{ '* share new torrent file to change it' | trans }}
{% endif %} {% endblock %}