2018-06-20 23:37:35 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2020-12-15 17:44:13 +00:00
|
|
|
{% block css %}
|
|
|
|
{{ parent() }}
|
|
|
|
<!-- BSTreeView plugin -->
|
|
|
|
<link href="{{ asset('assets/bstreeview/css/bstreeview.min.css') }}" rel="stylesheet">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block javascript %}
|
|
|
|
{{ parent() }}
|
|
|
|
<!-- BSTreeView plugin -->
|
|
|
|
<script src="{{ asset('assets/bstreeview/js/bstreeview.min.js') }}"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-06-20 23:37:35 +00:00
|
|
|
{% 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>
|
2020-12-15 17:44:13 +00:00
|
|
|
<td><abbr title="{{ torrent.totalSize }} bytes">{{ torrent.totalSize | humanize_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>
|
|
|
|
|
2020-12-15 17:44:13 +00:00
|
|
|
{% include 'torrent_files.html.twig' with {'torrent': torrent} only %}
|
2018-06-20 23:37:35 +00:00
|
|
|
{% endblock %}
|