{% import xutils.textutil as textutil %}
{% init parent_path = None %}
{% include note/component/css/gallery_css.html %}
{% include note/component/view_header.html %}
{% include note/component/note_path.html %}
{% include note/component/view_header_tag.html %}
{% if file.creator == _user_name %}
{% include fs/mod_fs_upload.html %}
{% end %}
{% for item in filelist %}
{# 隐藏文件 #}
{% if item.name == "" %}
{% continue %}
{% end %}
{% if xconfig.FS_HIDE_FILES and (item.name[0] == "." or item.name.endswith((".pyc", ".class"))) %}
{% continue %}
{% end %}
{% if not item.name.startswith("._") %}
{% if item.type == "dir" %}
{% elif xutils.is_img_file(item.path) %}
{% elif xutils.is_text_file(item.path) %}
{% else %}
{% end %}