diff options
Diffstat (limited to 'bn_django/git_wiki/templates')
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/commit.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/commit.html b/bn_django/git_wiki/templates/git_wiki/commit.html index 8497311..82aace4 100644 --- a/bn_django/git_wiki/templates/git_wiki/commit.html +++ b/bn_django/git_wiki/templates/git_wiki/commit.html @@ -1,5 +1,9 @@ {% extends "git_wiki/base.html" %} +{% block stylesheets %}{{ block.super }} +<link rel="STYLESHEET" type="text/css" href="/static/style/pygments-default.css" /> +{% endblock %} + {% block title %}Commit: {{ commit.committer_date}} {% endblock %} {% block gitwiki %} {% if commit %} @@ -23,9 +27,13 @@ {{ commit.committer }}<br /> <b>Committer Date: </b> {{ commit.committer_date }}<br /> - {% if commit.rawdiff %} - <pre class="large">{{ commit.rawdiff }}</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 }}</pre> + {% else %}No difference?{% endif %} + {% endif %} {% else %} <h3>No such object: {{ hash }}</h3> {% endif %} {% endblock %} |