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