aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates/debug_toolbar/panels/templates.html
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/templates/debug_toolbar/panels/templates.html')
-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 %}