aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-21 00:16:46 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-21 00:16:46 -0800
commit90f58b36ecc39a1e2108bbdf65da3f184bc57247 (patch)
treed3c6845242d518f662f2c070e58f24b11cffe798
parent894b8def59da135c0fadf428f9c38e513ceb2c64 (diff)
downloadbnewnet-90f58b36ecc39a1e2108bbdf65da3f184bc57247.tar.gz
bnewnet-90f58b36ecc39a1e2108bbdf65da3f184bc57247.zip
misc work on git_browse, incl commit objects
-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 %}