{% if current_repo_path %} {% set parent_path = current_repo_path.rsplit('/', 1)[0] if '/' in current_repo_path else '' %}
..
{% endif %} {% for file in files %}
{# --- Icon logic is correct --- #} {% set icon_name, icon_class = file.icon %} {% set mid = (file.name|length) // 2 + (file.name|length) % 2 %} {% if file.is_dir %} {{ file.name[:mid] }} {{ file.name[mid:] }} {% else %} {{ file.name[:mid] }} {{ file.name[mid:] }} {% endif %}
{{ file.last_commit_title }} {{ file.last_commit_timeago }} {% endfor %} {% if not files and not current_repo_path %} This repository is empty. {% endif %}