{% extends 'base.html.twig' %} {% block content %} {# @var torrent \App\Entity\Torrent #}
Name {{ torrent.name }}
Hash {{ torrent.infoHashAsHex }}
Size {{ (torrent.totalSize / 1024 / 1024) | round(2, 'ceil')}} MB
Discovered {{ torrent.discoveredOn | date('Y-m-d H:i:s')}}
{# @var file \App\Entity\File #} {% for file in torrent.files | sort %} {% endfor %}
File Size
{{ file.path }} {{ (file.size / 1024 / 1024) | round(2, 'ceil')}} MB
{% endblock %}