{% extends "repo.html" %} {% import "utils.html" as utils %} {% block title %} {{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block content %}
{{ utils.breadcrumb(ref, repo, path, path_join) }}
{{commit.id.hex[:8]}} — {% set author_user = lookup_user(commit.author.email) %} {% if author_user %} {{commit.author.name}} {% else %} {{commit.author.name}} {% endif %} {{trim_commit(commit.message)}} {{ commit_time(commit) | date }}
{# chromium has a hard limit on 1000 rows per grid #} {% for index in range(0, len(tree), 501) %} {% set group = tree[index:index + 501] %}
{% if path != [''] and index == 0 %}
..
{% endif %} {% for entry in group %}
{% if entry.filemode == 57344 %} {# git submodule #} m--------- {% else %} {{stat.filemode(entry.filemode)}} {% endif %}
{% if entry.type == "commit" %} {{entry.name}} @ {{ entry.id }} {% else %} {{entry.name}}{% if entry.type == "tree" %}/{% endif %} {% endif %}
{% if entry.commit %} {{trim_commit(entry.commit.message)}} {% endif %}
{% if entry.commit %} {{ commit_time(entry.commit) | date }} {% endif %}
{% if entry.type == "blob" %} {{humanize.naturalsize(entry.blob.size, binary=True).replace("Byte", "byte")}} {% endif %}
{% endfor %}
{% endfor %}
{% endblock %}