30 lines
904 B
Twig
30 lines
904 B
Twig
{% block content %}
|
|
|
|
<div class="pagination">
|
|
{{ pagerfanta(torrents) }}
|
|
</div>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">🔗</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Size</th>
|
|
<th scope="col">Discovered</th>
|
|
</tr>
|
|
</thead>
|
|
{# @var torrent \App\Entity\Torrent #}
|
|
{% for torrent in torrents %}
|
|
<tr>
|
|
<td><a href="{{ magnet(torrent.name, torrent.infoHash) }}">🔗</a></td>
|
|
<td><a href="{{ path('torrents_show', {'id': torrent.id}) }}">{{ torrent.name }}</a></td>
|
|
<td>{{ torrent.totalSize | readable_size }}</td>
|
|
<td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<div class="pagination">
|
|
{{ pagerfanta(torrents) }}
|
|
</div>
|
|
{% endblock %} |