{% extends "repo_master.html" %}
{% block title %}{{ repo.name }} - {{ commitid }}{% endblock %}
{%block tag %}home{% endblock %}
{% block repo %}
<h3>
Commit: {{ commitid }}
{% if '/fork/' in request.url %}
(<a href="{{ url_for('view_fork_tree', username=username,
repo=repo.name, identifier=commitid) }}"
>tree</a>)
{% else %}
(<a href="{{ url_for('view_tree',
repo=repo.name, identifier=commitid) }}"
>tree</a>)
{% endif %}
</h3>
<table>
<tr>
<td>Author</td>
<td>
{{ commit.author.name }} {{ '<' + commit.author.email + '>' }}
- {{ commit.commit_time }}
</td>
</tr>
<tr>
<td>Committer</td>
<td>
{{ commit.committer.name }} {{ '<' + commit.committer.email + '>' }}
- {{ commit.commit_time }}
</td>
</tr>
<tr>
<td>Parent</td>
<td>
{% for parent in commit.parents %}
{% if '/fork/' in request.url %}
<a href="{{ url_for('view_fork_commit', username=username,
repo=repo.name, commitid=parent.oid.hex) }}">
{% else %}
<a href="{{ url_for('view_commit',
repo=repo.name, commitid=parent.oid.hex) }}">
{% endif %}
{{ parent.oid.hex }}
</a> <br />
{% endfor %}
</td>
</tr>
</table>
<section class="commit_message">
<span class="commit_message_head">
{{ commit.message.split('\n')[0] }}
</span>
<span class="commit_message_body">
{{ commit.message.split('\n')[1] }}
</span>
</section>
<section class="commit_diff">
<h3>Diff:</h3>
{% autoescape false %}
{{ html_diff }}
{% endautoescape %}
</section>
{% endblock %}