This repository has been archived on 2023-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyNyaaTa/pynyaata/templates/latest.html

83 lines
2.6 KiB
HTML
Raw Permalink Normal View History

2019-12-01 17:30:24 +00:00
{% extends "layout.html" %}
2019-12-17 14:44:39 +00:00
{% block title %}- Latest torrents{% endblock %}
2019-12-01 17:30:24 +00:00
{% block body %}
<table class="table is-bordered is-striped is-narrow is-fullwidth is-hoverable is-size-7">
<thead>
<tr>
<th>Name</th>
<th>Link</th>
<th>Size</th>
<th>Date</th>
<th>
<i class="fa fa-arrow-up"></i>
</th>
<th>
<i class="fa fa-arrow-down"></i>
</th>
<th>
<i class="fa fa fa-check"></i>
</th>
</tr>
</thead>
<tbody>
2019-12-02 20:50:00 +00:00
{% for torrent in torrents %}
<tr class="{{ torrent.class }}">
2019-12-12 21:29:55 +00:00
<td colspan="{{ '3' if torrent.self.is_light else '' }}">
<img class="favicon"
src="{{ url_for('static', filename='favicons/%s' % torrent.self.favicon) }}" alt="">
<i>&nbsp;</i>
2021-01-30 18:40:36 +00:00
{{ torrent.vf|flagify }}
2019-12-12 21:29:55 +00:00
<a href="{{ torrent.href }}" target="_blank">
{{ torrent.name|boldify|safe }}
</a>
</td>
2019-12-02 20:50:00 +00:00
2019-12-03 21:43:53 +00:00
{% if torrent.self.is_light %}
<td>
{{ torrent.date }}
</td>
<td colspan="3">
{{ torrent.type }}
</td>
{% else %}
<td>
{{ torrent.link|safe }}
{{ torrent.comment|safe }}
</td>
<td>
{{ torrent.size }}
</td>
<td>
{{ torrent.date }}
</td>
<td>
{{ torrent.seeds }}
</td>
<td>
{{ torrent.leechs }}
</td>
<td>
{{ torrent.downloads }}
</td>
{% endif %}
2019-12-02 20:50:00 +00:00
</tr>
{% endfor %}
2019-12-01 17:30:24 +00:00
</tbody>
</table>
2019-12-03 21:43:53 +00:00
<nav class="pagination is-right" role="navigation" aria-label="pagination">
{% if page > 1 %}
2019-12-15 17:53:19 +00:00
<a class="pagination-previous" href="{{ url_for('latest', page=(page - 1)) }}">
2019-12-03 21:43:53 +00:00
Previous
</a>
{% endif %}
2019-12-15 17:53:19 +00:00
<a class="pagination-next" href="{{ url_for('latest', page=(page + 1)) }}">
2019-12-03 21:43:53 +00:00
Next page
</a>
<ul class="pagination-list"></ul>
</nav>
2019-12-01 17:30:24 +00:00
{% endblock %}