From 822988142666fccb216a17ef3abbee7b6bbcf76b Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 7 Oct 2008 12:23:18 -0700 Subject: Clicking on a template file now will fetch and show the source of the template. Thanks to Adam Gomaa for the patch. --- debug_toolbar/templates/debug_toolbar/panels/template_source.html | 3 +++ debug_toolbar/templates/debug_toolbar/panels/templates.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debug_toolbar/templates/debug_toolbar/panels/template_source.html (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html new file mode 100644 index 0000000..572522b --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -0,0 +1,3 @@ +« Back +

Template Source: {{ template_name }}

+{{ source }} diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index a92657b..6c918b1 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -12,7 +12,7 @@ {% if templates %}
{% for template in templates %} -
{{ template.template.name|addslashes }}
+
{{ template.template.name|addslashes }}
{{ template.template.origin_name|addslashes }}
-- cgit v1.2.3