From 760653360fa9d3bd09047dcbea7785717e54a83b Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Tue, 25 Aug 2009 17:25:36 +0300
Subject: Removed tons of invalid ".boxed" classes, renamed boxed -> scroll
---
debug_toolbar/media/debug_toolbar/toolbar.css | 2 +-
debug_toolbar/templates/debug_toolbar/base.html | 4 +-
.../templates/debug_toolbar/panels/headers.html | 32 ++--
.../templates/debug_toolbar/panels/logger.html | 49 +++---
.../debug_toolbar/panels/request_vars.html | 176 ++++++++++-----------
.../debug_toolbar/panels/settings_vars.html | 32 ++--
.../templates/debug_toolbar/panels/signals.html | 36 ++---
.../templates/debug_toolbar/panels/sql.html | 92 ++++++-----
.../debug_toolbar/panels/template_source.html | 8 +-
.../templates/debug_toolbar/panels/templates.html | 60 ++++---
.../templates/debug_toolbar/panels/timer.html | 40 +++--
11 files changed, 251 insertions(+), 280 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 44a9074..bf4648a 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -179,7 +179,7 @@
padding:10px 20px;
}
-#djDebug .djDebugPanelContent .boxed {
+#djDebug .djDebugPanelContent .scroll {
height:100%;
overflow:auto;
display:block;
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index b80daef..dc8ccf9 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -56,7 +56,9 @@
- {{ panel.content|safe }}
+
+ {{ panel.content|safe }}
+
{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 957a021..f251056 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -1,19 +1,17 @@
{% load i18n %}
-
-
-
-
- | {% trans "Key" %} |
- {% trans "Value" %} |
+
+
+
+ | {% trans "Key" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in headers.iteritems %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
-
-
- {% for key, value in headers.iteritems %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-
+ {% endfor %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html
index 515742c..5e8b652 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/logger.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html
@@ -1,27 +1,26 @@
{% load i18n %}
-
- {% if records %}
-
-
-
- | {% trans "Level" %} |
- {% trans "Time" %} |
- {% trans "Message" %} |
- {% trans "Location" %} |
+{% if records %}
+
+
+
+ | {% trans "Level" %} |
+ {% trans "Time" %} |
+ {% trans "Message" %} |
+ {% trans "Location" %} |
+
+
+
+ {% for record in records %}
+
+ | {{ record.level }} |
+ {{ record.time|date:"h:i:s m/d/Y" }} |
+ {{ record.message }} |
+ {{ record.file }}:{{ record.line }} |
-
-
- {% for record in records %}
-
- | {{ record.level }} |
- {{ record.time|date:"h:i:s m/d/Y" }} |
- {{ record.message }} |
- {{ record.file }}:{{ record.line }} |
-
- {% endfor %}
-
-
- {% else %}
- {% trans "No messages logged" %}.
- {% endif %}
-
+ {% endfor %}
+
+
+{% else %}
+
{% trans "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 b1d7233..3fdbf74 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
@@ -1,104 +1,96 @@
{% load i18n %}
COOKIES Variables
-
- {% if cookies %}
-
-
-
-
-
-
-
- | {% trans "Variable" %} |
- {% trans "Value" %} |
+{% if cookies %}
+
+
+
+
+
+
+
+ | {% trans "Variable" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in cookies %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
-
-
- {% for key, value in cookies %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
- {% else %}
- {% trans "No COOKIE data" %}
- {% endif %}
-
+ {% endfor %}
+
+
+{% else %}
+
{% trans "No COOKIE data" %}
+{% endif %}
SESSION Variables
-
- {% if session %}
-
-
-
-
-
-
-
- | {% trans "Variable" %} |
- {% trans "Value" %} |
+{% if session %}
+
+
+
+
+
+
+
+ | {% trans "Variable" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in session %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
-
-
- {% for key, value in session %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
- {% else %}
- {% trans "No SESSION data" %}
- {% endif %}
-
+ {% endfor %}
+
+
+{% else %}
+
{% trans "No SESSION data" %}
+{% endif %}
GET Variables
-
- {% if get %}
-
-
-
- | {% trans "Variable" %} |
- {% trans "Value" %} |
+{% if get %}
+
+
+
+ | {% trans "Variable" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in get %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
-
-
- {% for key, value in get %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
- {% else %}
- {% trans "No GET data" %}
- {% endif %}
-
+ {% endfor %}
+
+
+{% else %}
+
{% trans "No GET data" %}
+{% endif %}
POST Variables
-
- {% if post %}
-
-
-
- | {% trans "Variable" %} |
- {% trans "Value" %} |
+{% if post %}
+
+
+
+ | {% trans "Variable" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in post %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
-
-
- {% for key, value in post %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
- {% else %}
- {% trans "No POST data" %}
- {% endif %}
-
+ {% endfor %}
+
+
+{% else %}
+
{% trans "No POST data" %}
+{% 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 1591966..99c43b6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
@@ -1,19 +1,17 @@
{% load i18n %}
-
-
-
-
- | {% trans "Setting" %} |
- {% trans "Value" %} |
+
+
+
+ | {% trans "Setting" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for var in settings.items|dictsort:"0" %}
+
+ | {{ var.0 }} |
+ {{ var.1|pprint }} |
-
-
- {% for var in settings.items|dictsort:"0" %}
-
- | {{ var.0 }} |
- {{ var.1|pprint }} |
-
- {% endfor %}
-
-
-
+ {% endfor %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html
index 94414ea..d6d681c 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/signals.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html
@@ -1,21 +1,19 @@
{% load i18n %}
-
-
-
-
- | {% trans "Signal" %} |
- Providing Args |
- Receivers |
+
+
+
+ | {% trans "Signal" %} |
+ Providing Args |
+ Receivers |
+
+
+
+ {% for name, signal, receivers in signals %}
+
+ | {{ name|escape }} |
+ {{ signal.providing_args|join:", " }} |
+ {{ receivers|join:", " }} |
-
-
- {% for name, signal, receivers in signals %}
-
- | {{ name|escape }} |
- {{ signal.providing_args|join:", " }} |
- {{ receivers|join:", " }} |
-
- {% endfor %}
-
-
-
+ {% endfor %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index aecfad6..7aa4c2d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -1,51 +1,49 @@
{% load i18n %}
-
-
-
-
- | {% trans "Time" %} (ms) |
- {% trans "Action" %} |
- Stacktrace |
- Query |
-
-
-
- {% for query in queries %}
-
- | {{ query.time|floatformat:"2" }} |
-
- {% if query.params %}
- SELECT
- EXPLAIN
- {% if is_mysql %}
- PROFILE
- {% endif %}
+
+
+
+ | {% trans "Time" %} (ms) |
+ {% trans "Action" %} |
+ Stacktrace |
+ Query |
+
+
+
+ {% for query in queries %}
+
+ | {{ query.time|floatformat:"2" }} |
+
+ {% if query.params %}
+ SELECT
+ EXPLAIN
+ {% if is_mysql %}
+ PROFILE
{% endif %}
- |
-
- {% if query.stacktrace %}
-
-
-
+ {% endif %}
+
+
+ {% if query.stacktrace %}
+
+
+
+
+ | {% trans "Line" %} |
+ {% trans "Method" %} |
+ {% trans "File" %} |
+
+ {% for file, line, method in query.stacktrace %}
- | {% trans "Line" %} |
- {% trans "Method" %} |
- {% trans "File" %} |
+ {{ line }} |
+ {{ method|escape }} |
+ {{ file|escape }} |
- {% for file, line, method in query.stacktrace %}
-
- | {{ line }} |
- {{ method|escape }} |
- {{ file|escape }} |
-
- {% endfor %}
-
-
- {% endif %}
- |
- {{ query.sql|safe }} |
-
- {% endfor %}
-
-
-
+ {% endfor %}
+ |
+
+ {% endif %}
+ |
+ {{ query.sql|safe }} |
+
+ {% endfor %}
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
index 8e8253d..192d1af 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
@@ -4,11 +4,5 @@
Template Source: {{ template_name }}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index d4e18b5..872a5f5 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -1,6 +1,5 @@
{% load i18n %}
Template path{{ template_dirs|length|pluralize }}
-
{% if template_dirs %}
{% for template in template_dirs %}
@@ -10,39 +9,34 @@
{% else %}
None
{% endif %}
-
{% trans "Template" %}{{ templates|length|pluralize }}
-
- {% if templates %}
-
- {% for template in templates %}
- - {{ template.template.name|addslashes }}
- - {{ template.template.origin_name|addslashes }}
- -
-
-
-
- {% endfor %}
-
- {% else %}
-
None
- {% endif %}
-
+{% if templates %}
+
+{% for template in templates %}
+ - {{ template.template.name|addslashes }}
+ - {{ template.template.origin_name|addslashes }}
+ -
+
+
+
+{% endfor %}
+
+{% else %}
+
None
+{% endif %}
Context processor{{ context_processors|length|pluralize }}
-
- {% if context_processors %}
-
- {% for key, value in context_processors.iteritems %}
- - {{ key|escape }}
- -
-
-
-
- {% endfor %}
-
- {% else %}
-
None
- {% endif %}
-
+{% if context_processors %}
+
+{% for key, value in context_processors.iteritems %}
+ - {{ key|escape }}
+ -
+
+
+
+{% endfor %}
+
+{% else %}
+
None
+{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html
index 9fd479f..f267de1 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/timer.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html
@@ -1,23 +1,21 @@
{% load i18n %}
-
-
-
-
-
-
-
-
- | {% trans "Resource" %} |
- {% trans "Value" %} |
+
+
+
+
+
+
+
+ | {% trans "Resource" %} |
+ {% trans "Value" %} |
+
+
+
+ {% for key, value in rows %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
-
-
- {% for key, value in rows %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-
+ {% endfor %}
+
+
--
cgit v1.2.3