1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 20:29:59 +00:00

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

View file

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