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