mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:19:59 +00:00
Fix inverted icons in file list
This commit is contained in:
parent
ca382bff9c
commit
559602d19b
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue