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>
|
2018-06-22 15:50:11 +00:00
|
|
|
<tr>
|
|
|
|
<th scope="col">🔗</th>
|
|
|
|
<th scope="col">Name</th>
|
|
|
|
<th scope="col">Size</th>
|
|
|
|
<th scope="col">Discovered</th>
|
|
|
|
</tr>
|
2018-06-20 19:30:00 +00:00
|
|
|
</thead>
|
2018-06-23 14:57:10 +00:00
|
|
|
{# @var torrent \App\Magnetico\Entity\Torrent #}
|
2018-06-20 19:30:00 +00:00
|
|
|
{% for torrent in torrents %}
|
|
|
|
<tr>
|
2018-06-22 19:47:51 +00:00
|
|
|
<td><a href="{{ magnet(torrent.name, torrent.infoHash) }}">🔗</a></td>
|
2018-06-22 19:45:17 +00:00
|
|
|
<td><a href="{{ path('torrents_show', {'id': torrent.id}) }}">{{ torrent.name }}</a></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
|
|
|
</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 %}
|