Browse Source

update file tree view

main
ghost 1 year ago
parent
commit
5c4e949269
  1. 16
      templates/default/torrent/info.html.twig

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

@ -2,16 +2,18 @@
{% import _self as self %} {% import _self as self %}
{% for key, value in tree %} {% for key, value in tree %}
{% if value is iterable %} {% if value is iterable %}
<div class="padding-l-8-px cursor-default"> <div class="padding-x-4-px margin-b-4-px cursor-default line-height-20-px word-break">
<div class="padding-y-4-px"> {{ key }}
{{ key }} </div>
</div> <div class="padding-l-8-px">
{{ self.recursive_file_tree(value) }} {{ self.recursive_file_tree(value) }}
</div> </div>
{% else %} {% else %}
<div class="padding-y-4-px padding-l-8-px background-color-hover-night-light cursor-default word-break"> <div class="row padding-x-4-px margin-b-4-px cursor-default background-color-hover-night-light word-break">
{{ key }} <div class="column width-80 line-height-20-px">
<div class="float-right padding-x-8-px"> {{ key }}
</div>
<div class="column width-20 line-height-20-px text-right">
{{ value | format_bytes }} {{ value | format_bytes }}
</div> </div>
</div> </div>

Loading…
Cancel
Save