From 90f58b36ecc39a1e2108bbdf65da3f184bc57247 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 21 Feb 2007 00:16:46 -0800 Subject: misc work on git_browse, incl commit objects --- .../git_browse/templates/git_browse/commit.html | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bn_django/git_browse/templates/git_browse/commit.html (limited to 'bn_django/git_browse') 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 %} +

Commit sha1 hash

+ {{ commit.id }}
+

Parent sha1 hash

+ {% if commit.parenthash %} + + {{ commit.parenthash }} + {% else %}No parent... root commit?{% endif %} +

Tree sha1 hash

+ {% if commit.treehash %} + + {{ commit.treehash }} + {% else %}No tree hash?{% endif %} +

Author

+ {{ commit.author }}
+

Author Date

+ {{ commit.author_date }}
+

Committer

+ {{ commit.committer }}
+

Committer Date

+ {{ commit.committer_date }}
+ {% if commit.rawdiff %} +
{{ commit.rawdiff }}
+ {% else %}No diff{% endif %} +{% else %} +

No such object: {{ hash }}

+{% endif %} {% endblock %} -- cgit v1.2.3