mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-14 07:39:03 +00:00
Show first level's items based on amount
Currently set to show when list has 20 items or less
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
{% if value is iterable %}
|
||||
<li>
|
||||
<a href="" class="folder"><i class="fa fa-folder-open"></i>{{ key }}</a>
|
||||
<ul>{{ '\n' + loop(value.items()) }}
|
||||
<ul{% if not loop.depth0 and value.items()|length <= 20 %} data-show="yes"{% endif %}>{{ '\n' + loop(value.items()) }}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user