{% 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 %}
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 -%} |
{%- when crate::git::TreeItem::File with (file) -%} | {{ file.mode|file_perms }} |
{{ file.name }} |
{{ file.size }} |
{%- when crate::git::TreeItem::Submodule with (submodule) -%} | {{ submodule.mode|file_perms }} |
🔗 {{ submodule.name }} @ {{ submodule.oid.to_hex_with_len(7) }} |
{%- endmatch %} |