aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorRob Hudson2008-09-07 00:30:27 -0700
committerRob Hudson2008-09-07 00:30:27 -0700
commit1d309f8a3a9c0ad76c22e0e2a0600459ea8d88f0 (patch)
tree3434219d3ce64ae6084841e7a34279c29bf016a3 /debug_toolbar
parente62b774a7e2fef4549cacbba9b5c91dd8f150c50 (diff)
downloaddjango-debug-toolbar-1d309f8a3a9c0ad76c22e0e2a0600459ea8d88f0.tar.bz2
no need to output div if there is no content
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/templates/debug_toolbar/base.html10
1 files changed, 6 insertions, 4 deletions
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 %}
</ul>
{% for panel in panels %}
- <div id="{{ panel.dom_id }}" class="panelContent" style="background-color:orange; width:50%; float:right;">
- <h1>{{ panel.title }}</h1>
- {{ panel.content|safe }}
- </div>
+ {% if panel.content %}
+ <div id="{{ panel.dom_id }}" class="panelContent" style="background-color:orange; width:50%; float:right;">
+ <h1>{{ panel.title }}</h1>
+ {{ panel.content|safe }}
+ </div>
+ {% endif %}
{% endfor %}
</div>
</div>