redo html hierarchy and add basic css

This commit is contained in:
Vladan Popovic 2024-09-18 01:58:35 +02:00
parent fcab3fb6c3
commit 2c19c2fd31
5 changed files with 86 additions and 12 deletions

View file

@ -1,9 +1,7 @@
{% extends 'index.html' %}
{% block content %}
<ul>
<ul class="torrents">
{% for torrent in torrents %}
<li hx-get="/download?{{ torrent.magnetlink | safe }}" hx-target="#content" hx-replace-url="/active">
<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>