diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index 3d15181..742106d 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -215,8 +215,18 @@ {{ 'Files'|trans }}
- {% for tree in file.tree %} - {{ recursive_file_tree(tree) }} + {% for key, value in file.tree %} + {% if value is iterable %} + {{ recursive_file_tree(value) }} + {% else %} +
+ {{ key }} +
+ {{ value | format_bytes }} +
+
+ {% endif %} + {% endfor %}