aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorRob Hudson2009-09-12 16:55:15 -0700
committerRob Hudson2009-09-12 16:55:15 -0700
commit9801c8b0a312bd18ff20414d72bb5b5f9c941018 (patch)
tree8032c47ff263cd6dc81aa9506140f001ea27a43f /debug_toolbar/templates
parentb7d7e9f876b67be35d8a24405f6940b2dcb66e97 (diff)
parentd6190014abd950f032755fde33ce32c30fc0e754 (diff)
downloaddjango-debug-toolbar-9801c8b0a312bd18ff20414d72bb5b5f9c941018.tar.bz2
Merge remote branch 'alex/master'
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index 1158abe..6107876 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -16,10 +16,12 @@
{% for template in templates %}
<dt><strong><a class="remoteCall toggleTemplate" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
+ {% if template.context %}
<dd>
<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> Toggle Context</a></div>
<div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div>
</dd>
+ {% endif %}
{% endfor %}
</dl>
{% else %}