{% import "macros/scmutils.html" as utils with context %}
{{ utils.breadcrumb(repo, ref, path_parts, display_ref_prefix) }}
{{commit.short_id}} — {% set author_user = lookup_user(commit.author_email) %} {% if author_user %} {{commit.author_name}} {% else %} {{commit.author_name}} {% endif %} {{commit.desc_first_line}} {{ commit.date | date }}
{# chromium has a hard limit on 1000 rows per grid #} {% for index in range(0, len(entries), 501) %} {% set group = entries[index:index + 501] %}
{% if parent_path_url -%}
..
{% endif -%} {% for entry in group -%}
{% if entry.permletter %} {{entry.permletter}}--------- {% else %} {{stat.filemode(entry.perm)}} {% endif %}
{% if entry.type == "commit" %} {{entry.name}} @ {{ entry.id }} {% else %} {{entry.name}}{% if entry.type == "dir" %}/{% endif %} {% endif %}
{% if entry.commit_url %} {{trim_commit(entry.commit.message)}} {% endif %}
{% if entry.commit %} {{ entry.commit.date | date }} {% endif %}
{% if entry.type == "file" %} {{humanize.naturalsize(entry.size, binary=True).replace("Byte", "byte")}} {% endif %}
{% endfor -%}
{% endfor -%}