torrent_list.html.twig small changes and invalid markup fix. Now 'Link' column shows before 'Name' column.

This commit is contained in:
Alexey Skobkin 2018-06-22 18:50:11 +03:00
parent bd6de353d6
commit fba80d17c1

View file

@ -6,22 +6,20 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr>
<th scope="col">&#128279;</th>
<th scope="col">Name</th> <th scope="col">Name</th>
<th scope="col">Size</th> <th scope="col">Size</th>
<th scope="col">Discovered</th> <th scope="col">Discovered</th>
<th scope="col">Link</th> </tr>
</thead> </thead>
{# @var torrent \App\Entity\Torrent #} {# @var torrent \App\Entity\Torrent #}
{% for torrent in torrents %} {% for torrent in torrents %}
<tr> <tr>
<td> <td><a href="{{ magnet(torrent.name, torrent.infoHashAsHex) }}">&#128279;</a></td>
<a href="{{ path('torrent_show', {'id': torrent.id}) }}">{{ torrent.name }}</a> <td><a href="{{ path('torrent_show', {'id': torrent.id}) }}">{{ torrent.name }}</a></td>
</td>
<td>{{ torrent.totalSize | readable_size }}</td> <td>{{ torrent.totalSize | readable_size }}</td>
<td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td> <td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td>
<td>
<a href="{{ magnet(torrent.name, torrent.infoHashAsHex) }}">&#128279;</a>
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>