everything works, needs makeup though

This commit is contained in:
Vladan Popovic 2024-09-15 00:39:25 +02:00
parent 5130450355
commit 464683e9ce
14 changed files with 377 additions and 0 deletions

15
templates/torrents.html Normal file
View file

@ -0,0 +1,15 @@
{% extends 'index.html' %}
{% block content %}
<ul>
{% for torrent in torrents %}
<li hx-get="/download?{{ torrent.magnetlink | safe }}" hx-target="#content" hx-replace-url="/active">
<span>{{ torrent.title }}</span>
<span>({{ torrent.seeds }})</span>
<span>({{ torrent.leeches }})</span>
<span>({{ torrent.filesize }})</span>
<span>{{ torrent.category }}</span>
</li>
{% endfor %}
</ul>
{% endblock %}