{% block content %} <ul class="torrents"> {% for torrent in torrents %} <li hx-get="/download?{{ torrent.magnetlink | safe }}" hx-target="#content" hx-replace-url="/active" hx-push-url="true"> <span>{{ torrent.title }}</span> <span>({{ torrent.seeds }})</span> <span>({{ torrent.leeches }})</span> <span>({{ torrent.filesize }})</span> <span>{{ torrent.category }}</span> </li> {% endfor %} </ul> {% endblock %}