blob: b586eb81d698c4f3329a7acf5bd0be7c0a947766 (
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
30
31
32
33
34
35
36
|
{% extends "git_browse/base.html" %}
{% block stylesheets %}{{ block.super }}
<link rel="STYLESHEET" type="text/css" href="/static/style/pygments-default.css" />
{% endblock %}
{% 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.pretty_diff %}
<pre class="large">{{ commit.pretty_diff }}</pre>
{% else %}
{% if commit.rawdiff %}
<pre class="large">{{ commit.rawdiff|escape|wordwrap:80 }}</pre>
{% else %}No diff{% endif %}
{% endif %}
{% else %}
<h3>No such object: {{ hash }}</h3>
{% endif %} {% endblock %}
|