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-06-20 19:30:00 +00:00
|
|
|
<table class="table">
|
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>
|
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 %}
|