From 8dce37b90c36c849e428cab6db9e883cf0cd21a4 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 4 Jan 2009 11:45:10 -0800 Subject: un-escaped some html with |safe --- bn_django/git_wiki/templates/git_wiki/commit.html | 2 +- bn_django/photos/templates/photos/photo_detail.html | 4 ++-- bn_django/templates/newcomments_table | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bn_django') diff --git a/bn_django/git_wiki/templates/git_wiki/commit.html b/bn_django/git_wiki/templates/git_wiki/commit.html index 82aace4..e99d553 100644 --- a/bn_django/git_wiki/templates/git_wiki/commit.html +++ b/bn_django/git_wiki/templates/git_wiki/commit.html @@ -28,7 +28,7 @@ Committer Date: {{ commit.committer_date }}
{% if commit.pretty_diff %} -
{{ commit.pretty_diff}}
+
{{ commit.pretty_diff|safe}}
{% else %} {% if commit.rawdiff %}
{{ commit.rawdiff }}
diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index 1278bda..121c36c 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -62,10 +62,10 @@ by {{ object.photographer }}.

alt="{{ object.title }}" />
-

{{ object.desc }}

+

{{ object.desc|safe }}

{% if object.extra %}

More information

-

{{ object.extra }}

+

{{ object.extra|safe }}

{% endif %}
diff --git a/bn_django/templates/newcomments_table b/bn_django/templates/newcomments_table index ab50b7c..2349dd0 100644 --- a/bn_django/templates/newcomments_table +++ b/bn_django/templates/newcomments_table @@ -5,7 +5,7 @@ {{ c.submit_date|date:"F jS" }} {% if c.user.username %}{{ c.user.username }} - {% else %}c.user_name{% endif%} + {% else %}{{c.user_name}}{% endif%} {{ c.content_type.name }} -- cgit v1.2.3