43 lines
1.1 KiB
Twig
43 lines
1.1 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block content %}
|
|
{# @var torrent \App\Magnetico\Entity\Torrent #}
|
|
<table class="table">
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>{{ torrent.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Hash</td>
|
|
<td>
|
|
<a href="{{ magnet(torrent.infoHash, torrent.name) }}">{{ torrent.infoHash }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Size</td>
|
|
<td>{{ torrent.totalSize | readable_size }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Discovered</td>
|
|
<td>{{ torrent.discoveredOn | date('Y-m-d H:i:s')}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">File</th>
|
|
<th scope="col">Size</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{# @var file \App\Magnetico\Entity\File #}
|
|
{% for file in torrent.files | sort %}
|
|
<tr>
|
|
<td>{{ file.path }}</td>
|
|
<td>{{ file.size | readable_size }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %} |