From 1d309f8a3a9c0ad76c22e0e2a0600459ea8d88f0 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Sun, 7 Sep 2008 00:30:27 -0700 Subject: no need to output div if there is no content --- debug_toolbar/templates/debug_toolbar/base.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'debug_toolbar') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index c6469d4..da037fc 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -28,10 +28,12 @@ $(document).ready(function() { {% endfor %} {% for panel in panels %} -
-

{{ panel.title }}

- {{ panel.content|safe }} -
+ {% if panel.content %} +
+

{{ panel.title }}

+ {{ panel.content|safe }} +
+ {% endif %} {% endfor %} -- cgit v1.2.3