{% extends "base.html" %} {% block title %}{{ commit.summary }} - {{ name }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block content %}
{% if commit.prev_commit != "" %} ← Previous {% endif %} {% if commit.next_commit != "" %} Next → {% endif %}

{{ commit.summary }} {% if commit.is_head %}HEAD{% endif %}{% if commit.branch_name != "" %}{{ commit.branch_name }}{% endif %}

commit
{{ commit.hash }}
author
{{ commit.author }} <{{ commit.author }}> {{ commit.author_datetime }}
committer
{{ commit.committer }} {{ commit.committer_datetime }}
files changed
{{ commit.files }}
lines
{% if commit.removed %}-{{ commit.removed }}/{% endif %} {% if commit.added %}+{{ commit.added }}{% endif %}
{# Render the top row full-width: commit message + changed files #}

Commit message

{{ commit.message }}
{# Now render the TOC sidebar to the left and the diff on the right; this sits below the top row #}
{% if commit.diff and length(commit.diff) > 0 %}

Diff

{% for df in commit.diff %}
{{ df.filename }} {% if df.change_type == "renamed" or df.change_type == "copied" %}
{{ df.change_type }} from {{ df.old_filename }}
{% endif %}
{% for line in df.diff_lines %}{{ line.html }}{% endfor %}
{% endfor %} {% endif %}
{% endblock %}