From 5c4e9492698df0caa95c2e32fd5384676cda4e07 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 26 Oct 2023 06:37:41 +0300 Subject: [PATCH] update file tree view --- templates/default/torrent/info.html.twig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index e3f7251..50a8df4 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -2,16 +2,18 @@ {% import _self as self %} {% for key, value in tree %} {% if value is iterable %} -
-
- {{ key }} -
+
+ {{ key }} +
+
{{ self.recursive_file_tree(value) }}
{% else %} -
- {{ key }} -
+
+
+ {{ key }} +
+
{{ value | format_bytes }}