aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates/git_browse/commit.html
blob: b4ee4a62c57883574cc0682cd88203333e5a5859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% extends "git_browse/base.html" %}

{% block gitbrowse %} {% if commit %}
    <h3>Commit sha1 hash</h3>
    <span class="hash">{{ commit.id }}</span><br />
    <h3>Parent sha1 hash</h3>
    {% if commit.parenthash %}
    <a href="/code/{{object.slug}}/commit/{{ commit.parenthash }}/">
    <span class="hash">{{ commit.parenthash }}</span></a>
    {% else %}No parent... root commit?{% endif %}
    <h3>Tree sha1 hash</h3>
    {% if commit.treehash %}
    <a href="/code/{{object.slug}}/tree/{{ commit.treehash }}/">
    <span class="hash">{{ commit.treehash }}</span></a>
    {% else %}No tree hash?{% endif %}
    <h3>Author</h3>
    {{ commit.author }}<br />
    <h3>Author Date</h3>
    {{ commit.author_date }}<br />
    <h3>Committer</h3>
    {{ commit.committer }}<br />
    <h3>Committer Date</h3>
    {{ commit.committer_date }}<br />
    {% if commit.rawdiff %}
    <pre class="large">{{ commit.rawdiff|escape|wordwrap:80 }}</pre>
    {% else %}No diff{% endif %}
{% else %}
    <h3>No such object: {{ hash }}</h3>
{% endif %} {% endblock %}