From 81da67bbfcd18ac9802f652155c331229d7967f2 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 7 Sep 2009 09:47:38 -0700 Subject: Fixed template source to work nicely with and without Pygments. --- .../templates/debug_toolbar/panels/template_source.html | 10 +++++++--- debug_toolbar/views.py | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 3b265a9..7074f4f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -4,7 +4,11 @@
{{ template_name }}{{ source }}
+		{% else %}
+			{{ source }}
+		{% endif %}
+