Browse Source

fix single file torrents display #11

main
ghost 1 year ago
parent
commit
69214e8058
  1. 14
      templates/default/torrent/info.html.twig

14
templates/default/torrent/info.html.twig

@ -215,8 +215,18 @@ @@ -215,8 +215,18 @@
{{ 'Files'|trans }}
</div>
<div class="padding-y-16-px">
{% for tree in file.tree %}
{{ recursive_file_tree(tree) }}
{% for key, value in file.tree %}
{% if value is iterable %}
{{ recursive_file_tree(value) }}
{% else %}
<div class="padding-y-4-px cursor-default">
{{ key }}
<div class="float-right">
{{ value | format_bytes }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="padding-y-8-px border-bottom-default text-right">

Loading…
Cancel
Save