当前位置:
{% set paths = handler.request.path.rstrip('/').split('/') %}
{% for i,path in enumerate(paths) %}
{% if path == '' %}
Home
{% else %}
/ {{ urllib.parse.unquote(path) }}
{% end %}
{% end %}
{% if handler.get_cookie('auto-display') and entry[0].suffix.lower() in ['.jpg', '.jpeg', '.png', '.bmp'] %}
{% elif handler.get_cookie('auto-display') and entry[0].suffix.lower() in ['.mp4'] %}
{% elif handler.get_cookie('auto-display') and entry[0].suffix.lower() in ['.mp3', '.amr', '.ogg', '.wav'] %}
{% else %}
{% set icon = 'folder.png' if entry[3] else handler.icon.get(entry[0].suffix.lower(), 'other.png') %}
{% end %}
{{ entry[0].name }}