2018-06-20 19:30:00 +00:00
|
|
|
{% block content %}
|
2018-06-20 23:37:35 +00:00
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{{ pagerfanta(torrents) }}
|
|
|
|
</div>
|
|
|
|
|
2018-06-20 19:30:00 +00:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th scope="col">Name</th>
|
|
|
|
<th scope="col">Size</th>
|
|
|
|
<th scope="col">Discovered</th>
|
2018-06-20 23:37:35 +00:00
|
|
|
<th scope="col">Link</th>
|
2018-06-20 19:30:00 +00:00
|
|
|
</thead>
|
2018-06-20 23:37:35 +00:00
|
|
|
{# @var torrent \App\Entity\Torrent #}
|
2018-06-20 19:30:00 +00:00
|
|
|
{% for torrent in torrents %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2018-06-20 23:37:35 +00:00
|
|
|
<a href="{{ path('torrent_show', {'id': torrent.id}) }}">{{ torrent.name }}</a>
|
2018-06-20 19:30:00 +00:00
|
|
|
</td>
|
2018-06-20 23:37:35 +00:00
|
|
|
<td>{{ (torrent.totalSize / 1024 / 1024) | round(2, 'ceil')}} MB</td>
|
|
|
|
<td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td>
|
2018-06-20 19:30:00 +00:00
|
|
|
<td>
|
2018-06-20 23:37:35 +00:00
|
|
|
<a href="magnet:?xt=urn:btih:{{ torrent.infoHashAsHex }}&dn={{ torrent.name | url_encode }}">🔗</a>
|
2018-06-20 19:30:00 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-06-20 23:37:35 +00:00
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{{ pagerfanta(torrents) }}
|
|
|
|
</div>
|
2018-06-20 19:30:00 +00:00
|
|
|
{% endblock %}
|