Fix inverted icons in file list

This commit is contained in:
Kfir Hadas 2017-05-25 22:15:32 +03:00
parent ca382bff9c
commit 559602d19b
1 changed files with 3 additions and 2 deletions

View File

@ -93,9 +93,10 @@
<ul>
{% for key, value in files.items() recursive -%}
{% if value is iterable %}
{% set pre_expanded = not loop.depth0 and value.items()|length <= 20 %}
<li>
<a href="" class="folder"><i class="fa fa-folder-open"></i>{{ key }}</a>
<ul{% if not loop.depth0 and value.items()|length <= 20 %} data-show="yes"{% endif %}>{{ '\n' + loop(value.items()) }}
<a href="" class="folder"><i class="fa fa-folder{% if pre_expanded %}-open{% endif %}"></i>{{ key }}</a>
<ul{% if pre_expanded %} data-show="yes"{% endif %}>{{ '\n' + loop(value.items()) }}
</ul>
</li>
{% else %}