{% extends 'base.html.twig' %} {% block title %} {{ commit.subject }} ({{ commit.shortHash }}) - {{ repository.name }} {% endblock %} {% block header %} {% include 'page-header.html.twig' with { repository: repository, baseRef: commit.hash, current: 'commits' } %} {% endblock %} {% block search %} {% include 'search.html.twig' with { repository: repository, commitish: commit.hash } %} {% endblock %} {% block body %}
{{ commit.subject }}
{{ commit.author.name }}

{{ commit.author.name }} {{ 'REPOSITORY_COMMIT_COMMITED_ON'|trans }} {{ commit.commitedAt|date(commit_list_date_format) }}
{{ 'REPOSITORY_COMMIT_CHANGE_STATS'|trans({'%changed%': commit.diffs|length, '%additions%': commit.additions,'%deletions%': commit.deletions}) }}

{% if commit.body %}
{{ commit.body }}
{% endif %}
{% for file in commit.diffs %}
{% for hunk in file.hunks %} {% for line in hunk.lines %} {% endfor %} {% endfor %}
... ...
{{ hunk.contents }}
{% if line.type != 'add' %} {{ line.oldNumber }} {% endif %} {% if line.type != 'delete' %} {{ line.newNumber }} {% endif %}
{{ line.contents }}
{% endfor %} {% endblock %}