aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_browse/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-06-01 03:53:36 -0400
committerbnewbold <bnewbold@manus.(none)>2007-06-01 03:53:36 -0400
commit23ffcd2dd06e7193fa7c54aa3f4956922aafdf2a (patch)
tree4c5f5e111bf26ee4fa095e2b3b99c09c98245c23 /bn_django/git_browse/templates
parentc21fcbc9cb3837495549161817f5d02dd9be5d3b (diff)
downloadbnewnet-23ffcd2dd06e7193fa7c54aa3f4956922aafdf2a.tar.gz
bnewnet-23ffcd2dd06e7193fa7c54aa3f4956922aafdf2a.zip
diff pygmentation for git_browse
Diffstat (limited to 'bn_django/git_browse/templates')
-rw-r--r--bn_django/git_browse/templates/git_browse/commit.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/bn_django/git_browse/templates/git_browse/commit.html b/bn_django/git_browse/templates/git_browse/commit.html
index b4ee4a6..b586eb8 100644
--- a/bn_django/git_browse/templates/git_browse/commit.html
+++ b/bn_django/git_browse/templates/git_browse/commit.html
@@ -1,4 +1,7 @@
{% 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>
@@ -21,9 +24,13 @@
{{ 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 %}
+ {% 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 %}