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-22 15:16:55 +00:00
|
|
|
<td>{{ torrent.totalSize | readable_size }}</td>
|
2018-06-20 23:37:35 +00:00
|
|
|
<td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td>
|
2018-06-20 19:30:00 +00:00
|
|
|
<td>
|
2018-06-22 15:16:55 +00:00
|
|
|
<a href="{{ magnet(torrent.name, torrent.infoHashAsHex) }}">🔗</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 %}
|