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">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col">Name</th>
|
<tr>
|
||||||
<th scope="col">Size</th>
|
<th scope="col">🔗</th>
|
||||||
<th scope="col">Discovered</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Link</th>
|
<th scope="col">Size</th>
|
||||||
|
<th scope="col">Discovered</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) }}">🔗</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) }}">🔗</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue