2018-06-20 23:37:35 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-06-23 14:57:10 +00:00
|
|
|
{# @var torrent \App\Magnetico\Entity\Torrent #}
|
2018-06-20 23:37:35 +00:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>{{ torrent.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-10-20 23:00:43 +00:00
|
|
|
<td>Magnet</td>
|
2018-06-20 23:37:35 +00:00
|
|
|
<td>
|
2019-10-20 23:00:43 +00:00
|
|
|
<a href="{{ magnet(torrent.infoHash, torrent.name) }}"><code>{{ torrent.infoHash }}</code></a>
|
|
|
|
(<a href="{{ path('magnet_redirect', {'infoHash': torrent.infoHash}) }}">Redirect</a>)
|
2018-06-20 23:37:35 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Size</td>
|
2019-10-20 23:00:43 +00:00
|
|
|
<td><abbr title="{{ torrent.totalSize }} bytes">{{ torrent.totalSize | readable_size }}</abbr></td>
|
2018-06-20 23:37:35 +00:00
|
|
|
</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>
|
2018-06-23 14:57:10 +00:00
|
|
|
{# @var file \App\Magnetico\Entity\File #}
|
2018-06-20 23:37:35 +00:00
|
|
|
{% for file in torrent.files | sort %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ file.path }}</td>
|
2018-06-22 15:16:55 +00:00
|
|
|
<td>{{ file.size | readable_size }}</td>
|
2018-06-20 23:37:35 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|