From 68131cbf61cdde63d1c263ed5668f727fceb67b4 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 8 Sep 2008 11:08:03 -0700 Subject: Rewrite of toolbar HTML, CSS, and JS. Written by David Cramer with some tweaks. This also removes the jQuery dependency. --- debug_toolbar/templates/debug_toolbar/base.html | 80 ++++++++++++++-------- .../templates/debug_toolbar/panels/http_vars.html | 4 +- 2 files changed, 52 insertions(+), 32 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 9ebf9cc..7488b92 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,45 +1,65 @@ -
+ +
-
    -
  • DEBUG
  • + - {% for panel in panels %} - {% if panel.content %} -
    -

    {{ panel.title }}

    - {{ panel.content|safe }} +
    + {% for panel in panels %} + {% with panel.content as content %} + {% if content %} +
    +
    + Close +
    + {{ content|safe }}
    {% endif %} - {% endfor %} -
+ {% endwith %} + {% endfor %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/http_vars.html b/debug_toolbar/templates/debug_toolbar/panels/http_vars.html index 44f3497..8891f30 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/http_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/http_vars.html @@ -1,4 +1,4 @@ -
GET Variables
+

GET Variables

{% if get %} @@ -19,7 +19,7 @@ {% else %}

None

{% endif %} -
POST Variables
+

POST Variables

{% if post %}
-- cgit v1.2.3