aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>