mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
remove extra condition
This commit is contained in:
parent
2fc9535710
commit
c84e0ffbdb
1 changed files with 18 additions and 22 deletions
|
|
@ -1,27 +1,23 @@
|
||||||
{% extends "layout/default" %}
|
{% extends "layout/default" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if torrent %}
|
<div>
|
||||||
|
<h1>{% if torrent.name %}{{ torrent.name }}{% else %}{{ 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>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
<div>
|
<div>
|
||||||
<h1>{% if torrent.name %}{{ torrent.name }}{% else %}{{ info_hash }}{% endif %}</h1>
|
<a rel="nofollow" href="{{ torrent.magnet }}" title="Get magnet" class="action magnet"></a>
|
||||||
{% 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>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
<div>
|
|
||||||
<a rel="nofollow" href="{{ torrent.magnet }}" title="Get magnet" class="action magnet"></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
</div>
|
||||||
<div>Nothing.</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue