diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html
index a77f7a2..969a95e 100644
--- a/nyaa/templates/view.html
+++ b/nyaa/templates/view.html
@@ -86,17 +86,17 @@
{%- for key, value in files.items() recursive %}
-
+
{%- if value is iterable %}
-
- {{ key }} |
- {{ loop(value.items()) }}
+
+ {{ key }} |
+ {{ loop(value.items()) }}
{%- else %}
-
- {{ key }} |
- {{ value | filesizeformat(True) }} |
+
+ {{ key }} |
+ {{ value | filesizeformat(True) }} |
{%- endif %}
-
+
{%- endfor %}