From f60a5e3b048728240bb4d85dd1fb5e2c9ea6fa2d Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 17:04:54 +0300
Subject: panel width, content boxing, safe scrolling
---
debug_toolbar/templates/debug_toolbar/base.html | 6 +-
.../templates/debug_toolbar/panels/headers.html | 34 ++--
.../templates/debug_toolbar/panels/logger.html | 51 +++---
.../debug_toolbar/panels/request_vars.html | 187 +++++++++++----------
.../debug_toolbar/panels/settings_vars.html | 34 ++--
.../templates/debug_toolbar/panels/signals.html | 36 ++--
.../templates/debug_toolbar/panels/sql.html | 99 +++++------
.../debug_toolbar/panels/template_source.html | 12 +-
.../templates/debug_toolbar/panels/templates.html | 62 ++++---
.../templates/debug_toolbar/panels/timer.html | 42 ++---
10 files changed, 301 insertions(+), 262 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 5f4b7e7..a44d31e 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -54,8 +54,10 @@
Close
{{ panel.title|safe }}
-
{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index b14a50c..a6b6b59 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -1,16 +1,18 @@
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in headers.iteritems %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in headers.iteritems %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+
\ No newline at end of file
diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html
index e6ce945..2bfab05 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/logger.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html
@@ -1,25 +1,26 @@
-{% if records %}
-
-
-
- | Level |
- Time |
- Message |
- Location |
-
-
-
- {% for record in records %}
-
- | {{ record.level }} |
- {{ record.time|date:"h:i:s m/d/Y" }} |
- {{ record.message }} |
- {{ record.file }}:{{ record.line }} |
-
- {% endfor %}
-
-
-{% else %}
-
No messages logged.
-{% endif %}
-
+
+ {% if records %}
+
+
+
+ | Level |
+ Time |
+ Message |
+ Location |
+
+
+
+ {% for record in records %}
+
+ | {{ record.level }} |
+ {{ record.time|date:"h:i:s m/d/Y" }} |
+ {{ record.message }} |
+ {{ record.file }}:{{ record.line }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
No messages logged.
+ {% endif %}
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
index a65d0a5..d8c81ba 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
@@ -1,92 +1,103 @@
COOKIES Variables
-{% if cookies %}
-
-
-
-
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in cookies %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if cookies %}
+
+
+
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in cookies %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
SESSION Variables
-{% if session %}
-
-
-
-
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in session %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if session %}
+
+
+
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in session %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
GET Variables
-{% if get %}
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in get %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if get %}
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in get %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
POST Variables
-{% if post %}
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in post %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if post %}
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in post %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
\ No newline at end of file
diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
index c53ee4d..8c65700 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
@@ -1,16 +1,18 @@
-
-
-
- | Setting |
- Value |
-
-
-
- {% for var in settings.items|dictsort:"0" %}
-
- | {{ var.0 }} |
- {{ var.1|pprint }} |
-
- {% endfor %}
-
-
+
+
+
+
+ | Setting |
+ Value |
+
+
+
+ {% for var in settings.items|dictsort:"0" %}
+
+ | {{ var.0 }} |
+ {{ var.1|pprint }} |
+
+ {% endfor %}
+
+
+
\ No newline at end of file
diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html
index 7875700..c7a7733 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/signals.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html
@@ -1,18 +1,20 @@
-
-
-
- | Signal |
- Providing Args |
- Receivers |
-
-
-
- {% for name, signal, receivers in signals %}
-
- | {{ name|escape }} |
- {{ signal.providing_args|join:", " }} |
- {{ receivers|join:", " }} |
+
+
+
+
+ | Signal |
+ Providing Args |
+ Receivers |
- {% endfor %}
-
-
+
+
+ {% for name, signal, receivers in signals %}
+
+ | {{ name|escape }} |
+ {{ signal.providing_args|join:", " }} |
+ {{ receivers|join:", " }} |
+
+ {% endfor %}
+
+
+
\ No newline at end of file
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index 717d54d..bb805e6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -1,48 +1,51 @@
-