2018-06-20 19:30:00 +00:00
|
|
|
{% block content %}
|
2018-06-30 23:32:48 +00:00
|
|
|
{% import 'sortable_table_macro.html.twig' as sortable %}
|
2018-06-20 23:37:35 +00:00
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{{ pagerfanta(torrents) }}
|
|
|
|
</div>
|
|
|
|
|
2018-07-01 01:03:34 +00:00
|
|
|
<table class="table table-hover" id="table-torrents-list">
|
2018-06-30 23:32:48 +00:00
|
|
|
<thead class="thead-light">
|
2018-06-22 15:50:11 +00:00
|
|
|
<tr>
|
2018-06-30 23:32:48 +00:00
|
|
|
{{ sortable.sortable_columns({
|
2018-07-01 00:19:26 +00:00
|
|
|
'<i class="fas fa-magnet"></i>': null,
|
2018-06-30 23:32:48 +00:00
|
|
|
'Name': 'name',
|
|
|
|
'Size': 'totalSize',
|
|
|
|
'Discovered': 'discoveredOn'
|
|
|
|
}) }}
|
2018-06-22 15:50:11 +00:00
|
|
|
</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>
|
2019-01-29 17:09:58 +00:00
|
|
|
<td><a href="{{ magnet(torrent.infoHash, torrent.name) }}">🔗</a></td>
|
2018-06-22 19:45:17 +00:00
|
|
|
<td><a href="{{ path('torrents_show', {'id': torrent.id}) }}">{{ torrent.name }}</a></td>
|
2020-12-15 17:44:13 +00:00
|
|
|
<td>{{ torrent.totalSize | humanize_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 %}
|