mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
implement files list
This commit is contained in:
parent
c84e0ffbdb
commit
fa748fbd18
7 changed files with 133 additions and 76 deletions
|
|
@ -11,7 +11,7 @@
|
|||
<li><span title="Indexed">{{ row.indexed }}</span></li>
|
||||
{% if row.created %}<li><span title="Created">({{ row.created }})</span></li>{% endif %}
|
||||
{% if row.size %}<li><span title="Size">{{ row.size }}</span></li>{% endif %}
|
||||
<li><span title="Files">{{ row.files }}</span></li>
|
||||
<li><span title="Files">{{ row.files }}</span></li>
|
||||
{% if row.scrape %}
|
||||
<li><span title="Seeders" class="seeders">{{ row.scrape.seeders }}</span></li>
|
||||
<li><span title="Peers" class="peers">{{ row.scrape.peers }}</span></li>
|
||||
|
|
|
|||
|
|
@ -1,23 +1,42 @@
|
|||
{% extends "layout/default" %}
|
||||
{% block content %}
|
||||
<div>
|
||||
<h1>{% if torrent.name %}{{ torrent.name }}{% else %}{{ info_hash }}{% endif %}</h1>
|
||||
<h1>{% if torrent.name %}{{ torrent.name }}{% else %}{{ torrent.info_hash }}{% endif %}</h1>
|
||||
{% if torrent.comment %}<p>{{ torrent.comment }}</p>{% endif %}
|
||||
<div>
|
||||
<ul>
|
||||
<li><span title="Indexed">{{ torrent.indexed }}</span></li>
|
||||
{% if torrent.created %}<li><span title="Created">({{ torrent.created }})</span></li>{% endif %}
|
||||
{% if torrent.size %}<li><span title="Size">{{ torrent.size }}</span></li>{% endif %}
|
||||
<li><span title="Files">{{ torrent.files }}</span></li>
|
||||
{% if torrent.scrape %}
|
||||
<li><span title="Seeders" class="seeders">{{ torrent.scrape.seeders }}</span></li>
|
||||
<li><span title="Peers" class="peers">{{ torrent.scrape.peers }}</span></li>
|
||||
<li><span title="Leechers" class="leechers">{{ torrent.scrape.leechers }}</span></li>
|
||||
<li><span title="Indexed">{{ indexed }}</span></li>
|
||||
{% if created %}<li><span title="Created">({{ created }})</span></li>{% endif %}
|
||||
<li><span title="Size">{{ size }}</span></li>
|
||||
<li><span title="Files">{{ files_total }}</span></li>
|
||||
{% if scrape %}
|
||||
<li><span title="Seeders" class="seeders">{{ scrape.seeders }}</span></li>
|
||||
<li><span title="Peers" class="peers">{{ scrape.peers }}</span></li>
|
||||
<li><span title="Leechers" class="leechers">{{ scrape.leechers }}</span></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div>
|
||||
<a rel="nofollow" href="{{ torrent.magnet }}" title="Get magnet" class="action magnet"></a>
|
||||
<a rel="nofollow" href="{{ magnet }}" title="Get magnet" class="action magnet"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div></div>
|
||||
{% if files_list %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>File</th>
|
||||
<th>Size</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for file in files_list %}
|
||||
<tr>
|
||||
<td>{{ file.name }}</td>
|
||||
<td>{{ file.size }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue