aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bn_django/git_browse/templates/git_browse/commit.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/bn_django/git_browse/templates/git_browse/commit.html b/bn_django/git_browse/templates/git_browse/commit.html
new file mode 100644
index 0000000..3a1aefd
--- /dev/null
+++ b/bn_django/git_browse/templates/git_browse/commit.html
@@ -0,0 +1,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 }}</pre>
+ {% else %}No diff{% endif %}
+{% else %}
+ <h3>No such object: {{ hash }}</h3>
+{% endif %} {% endblock %}