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 @@
{{ 'Files'|trans }} {{ 'Files'|trans }}
</div> </div>
<div class="padding-y-16-px"> <div class="padding-y-16-px">
{% for tree in file.tree %} {% for key, value in file.tree %}
{{ recursive_file_tree(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 %} {% endfor %}
</div> </div>
<div class="padding-y-8-px border-bottom-default text-right"> <div class="padding-y-8-px border-bottom-default text-right">

Loading…
Cancel
Save