2018-06-20 23:37:35 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{# @var torrent \App\Entity\Torrent #}
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>{{ torrent.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Hash</td>
|
|
|
|
<td>
|
2018-06-22 19:47:51 +00:00
|
|
|
<a href="{{ magnet(torrent.name, torrent.infoHash) }}">{{ 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>
|
|
|
|
{# @var file \App\Entity\File #}
|
|
|
|
{% 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 %}
|