{# Commit graph panel for dev_tools/git.html -- expects the GitComponent context #}
Commits {{ commits|length }}
{% if not commits %}
No commits found
{% endif %} {% for c in commits %} {# Commit row #}
{% for p in c.paths %} {% endfor %} {% if c.is_head %} {% else %} {% endif %}
{# Ref pills #} {% for ref in c.refs %} {% if ref.kind == "tag" %} {{ ref.name }} {% else %} {% endif %} {% endfor %} {{ c.subject }}
{{ c.age }}
{# Expanded commit details #} {% if c.hash == component.selected_commit and commit_detail %}
{% for p in c.passthrough %}
{% endfor %}
{{ commit_detail.hash }}
{{ commit_detail.author }}
{{ commit_detail.date }}
{{ commit_detail.body }}
{% if commit_detail.stat_lines %}
{% for line in commit_detail.stat_lines %}{{ line }}{% if not forloop.last %}
{% endif %}{% endfor %}
{% endif %}
{% endif %} {% endfor %} {% if has_more_commits %}
{% endif %}