torent-downloader/templates/torrents.html

14 lines
432 B
HTML
Raw Normal View History

2024-09-15 00:39:25 +02:00
{% block content %}
2024-09-18 01:58:35 +02:00
<ul class="torrents">
2024-09-15 00:39:25 +02:00
{% for torrent in torrents %}
2024-09-18 01:58:35 +02:00
<li hx-get="/download?{{ torrent.magnetlink | safe }}" hx-target="#content" hx-replace-url="/active" hx-push-url="true">
2024-09-15 00:39:25 +02:00
<span>{{ torrent.title }}</span>
<span>({{ torrent.seeds }})</span>
<span>({{ torrent.leeches }})</span>
<span>({{ torrent.filesize }})</span>
<span>{{ torrent.category }}</span>
</li>
{% endfor %}
</ul>
{% endblock %}