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>
|
|
|
|
<td>Hash</td>
|
|
|
|
<td>
|
2019-01-29 17:09:58 +00:00
|
|
|
<a href="{{ magnet(torrent.infoHash, torrent.name) }}">{{ torrent.infoHash }}</a>
|
2018-06-20 23:37:35 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Size</td>
|
2018-06-22 15:16:55 +00:00
|
|
|
<td>{{ torrent.totalSize | readable_size }}</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 %}
|