{% for torrent in torrent_list %}
{% if torrent.files_count == 1 %} {% if torrent.first_file.finished %} {{ torrent.name }} {% else %} {{ torrent.name }} {% endif %} {% else %} {{ torrent.name }}, файлів: {{ torrent.files_count }} {% endif %}
{{ torrent.total_size }}
{{ torrent.progress|floatformat:2 }}%
{% if adminFlag %}
Користувачі: {% for username in torrent.usernames %} {{ username }} {% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} Додано: {{ torrent.date_added|date:"Y-m-d H:i:s" }}, {% if torrent.status == 'downloading' %} {% if torrent.eta == None %} час завантаження невідомий {% else %} залишилось {{ torrent.eta }} {% endif %} {% else %} завершено: {{ torrent.date_done|date:"Y-m-d H:i:s" }} {% endif %} {% if torrent.files_count > 1 %}
згорнути/розгорнути список файлів
{% endif %}
{% if torrent.files_count > 1 %} {% endif %}
{% endfor %}