{% import "macros.html" as macros %} {# A release's download state in its dialog, see release_download_progress() #} {% if status == 'D' %} {% set file_count = torrent.file_storage|length if torrent else 0 %}
{{macros.icon("#icon-check-bold", width=16, height=16, class="text-success mr-1")}}Downloaded {{file_count}} file{{file_count|pluralize}}
{# {{macros.torrent_files(torrent)}} #} {% elif status in ('A', 'M', 'd') %} {{macros.torrent_download_progress(release, transfer)}} {% else %} {% set request_url = url_for('main.download_torrent', release_id=release.id, template="_download-progress") %} {% endif %}