torrent_list.html.twig small changes and invalid markup fix. Now 'Link' column shows before 'Name' column.
This commit is contained in:
parent
bd6de353d6
commit
fba80d17c1
|
@ -6,22 +6,20 @@
|
|||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">🔗</th>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Size</th>
|
||||
<th scope="col">Discovered</th>
|
||||
<th scope="col">Link</th>
|
||||
</tr>
|
||||
</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><a href="{{ magnet(torrent.name, torrent.infoHashAsHex) }}">🔗</a></td>
|
||||
<td><a href="{{ path('torrent_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>
|
||||
<td>
|
||||
<a href="{{ magnet(torrent.name, torrent.infoHashAsHex) }}">🔗</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue