{% import "macros/breadcrumbs.html" as breadcrumbs %} {% extends "repo/base.html" %} {% block tree_nav_class %}active{% endblock %} {% block subnav %} {% call breadcrumbs::breadcrumbs(repo_path, query) %} {% endblock %} {% block content %}
{% for item in items -%} {% match item -%} {%- when crate::git::TreeItem::Tree with (tree) -%} {%- when crate::git::TreeItem::File with (file) -%} {%- when crate::git::TreeItem::Submodule with (submodule) -%} {%- endmatch %} {% endfor -%}
Mode Name Size
{{ tree.mode|file_perms }}
{{ tree.name }}
            {%- for child in tree.children.ancestors().collect_vec().into_iter().rev() -%}
                {%- if let Some(file_name) = child.file_name() %} / {{ file_name.to_string_lossy() }}{%- endif -%}
            {%- endfor -%}
        
{{ file.mode|file_perms }}
{{ file.name }}
{{ file.size }}
{{ submodule.mode|file_perms }}
🔗 {{ submodule.name }} @ {{ submodule.oid.to_hex_with_len(7) }}
{% endblock %}