mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix single file torrents display #11
This commit is contained in:
parent
0609d5775f
commit
69214e8058
1 changed files with 12 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue