+ + {% if search_results %} +
+
+ 🔍 搜索结果 ({{ search_results|length }}) + +
+ {% for result in search_results %} +
+
+ 📄 + {% set relative_path = result.path.replace(current_branch + '/' + current_version + '/', '') %} + {{ result.name }} +
+
{{ result.path }}
+
+ {% if result.size < 1024 %} + {{ result.size }} B + {% elif result.size < 1024*1024 %} + {{ (result.size/1024)|round(1) }} KB + {% else %} + {{ (result.size/(1024*1024))|round(1) }} MB + {% endif %} +
+
+ {% endfor %} +
+ {% endif %} + + + {% if not search_results %} +
+
+ 📁 文件列表 + + 大小 +
+ +{% for item in file_tree %} +
+
+ {% if item.type == 'dir' %}📁{% else %}📄{% endif %} + {% if item.type == 'dir' %} + {{ item.name }} + {% else %} + + {{ item.name }} + {% endif %} +
+
+ {% if item.type == 'dir' %}目录{% else %}{{ item.name }}{% endif %} +
+
+ {% if item.type == 'file' %} + {% if item.size < 1024 %} + {{ item.size }} B + {% elif item.size < 1024*1024 %} + {{ (item.size/1024)|round(1) }} KB + {% else %} + {{ (item.size/(1024*1024))|round(1) }} MB + {% endif %} + {% else %} + - + {% endif %} +
+
+ + {% else %} +
+
+ 此目录为空 +
+
+
+
+ {% endfor %} +
+ {% endif %} + + +
+
+ 📖 README.md +
+
+
加载中...
+
+
+