From 89a0b38316e1822bf22a4f013a6bb12f9db585b8 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 11 Aug 2009 13:33:03 -0500 Subject: allow for handling the pathological case of an insanely large template context --- debug_toolbar/templates/debug_toolbar/panels/templates.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 6c918b1..e54c951 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -14,10 +14,12 @@ {% for template in templates %}
{{ template.template.name|addslashes }}
{{ template.template.origin_name|addslashes }}
-
-
Toggle Context
- -
+ {% if template.context %} +
+
Toggle Context
+ +
+ {% endif %} {% endfor %} {% else %} -- cgit v1.2.3