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.title|safe }}

- {{ 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" %}
+ + + + + + + + {% for key, value in headers.iteritems %} + + + - - - {% for key, value in headers.iteritems %} - - - - - {% endfor %} - -
{% trans "Key" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
{{ key|escape }}{{ value|escape }}
-
+ {% 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 %} - - - - - - - +{% if records %} +
{% trans "Level" %}{% trans "Time" %}{% trans "Message" %}{% trans "Location" %}
+ + + + + + + + + + {% for record in records %} + + + + + - - - {% for record in records %} - - - - - - - {% endfor %} - -
{% trans "Level" %}{% trans "Time" %}{% trans "Message" %}{% trans "Location" %}
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.message }}{{ record.file }}:{{ record.line }}
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.message }}{{ record.file }}:{{ record.line }}
- {% 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 %} - - - - - - - - - +{% if cookies %} +
{% trans "Variable" %}{% trans "Value" %}
+ + + + + + + + + + + + {% for key, value in cookies %} + + + - - - {% for key, value in cookies %} - - - - - {% endfor %} - -
{% trans "Variable" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
{{ key|escape }}{{ value|escape }}
- {% else %} -

{% trans "No COOKIE data" %}

- {% endif %} -
+ {% endfor %} + + +{% else %} +

{% trans "No COOKIE data" %}

+{% endif %}

SESSION Variables

-
- {% if session %} - - - - - - - - - +{% if session %} +
{% trans "Variable" %}{% trans "Value" %}
+ + + + + + + + + + + + {% for key, value in session %} + + + - - - {% for key, value in session %} - - - - - {% endfor %} - -
{% trans "Variable" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
{{ key|escape }}{{ value|escape }}
- {% else %} -

{% trans "No SESSION data" %}

- {% endif %} -
+ {% endfor %} + + +{% else %} +

{% trans "No SESSION data" %}

+{% endif %}

GET Variables

-
- {% if get %} - - - - - +{% if get %} +
{% trans "Variable" %}{% trans "Value" %}
+ + + + + + + + {% for key, value in get %} + + + - - - {% for key, value in get %} - - - - - {% endfor %} - -
{% trans "Variable" %}{% trans "Value" %}
{{ key|escape }}{{ value|join:", "|escape }}
{{ key|escape }}{{ value|join:", "|escape }}
- {% else %} -

{% trans "No GET data" %}

- {% endif %} -
+ {% endfor %} + + +{% else %} +

{% trans "No GET data" %}

+{% endif %}

POST Variables

-
- {% if post %} - - - - - +{% if post %} +
{% trans "Variable" %}{% trans "Value" %}
+ + + + + + + + {% for key, value in post %} + + + - - - {% for key, value in post %} - - - - - {% endfor %} - -
{% trans "Variable" %}{% trans "Value" %}
{{ key|escape }}{{ value|join:", "|escape }}
{{ key|escape }}{{ value|join:", "|escape }}
- {% 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" %}
+ + + + + + + + {% for var in settings.items|dictsort:"0" %} + + + - - - {% for var in settings.items|dictsort:"0" %} - - - - - {% endfor %} - -
{% trans "Setting" %}{% trans "Value" %}
{{ var.0 }}{{ var.1|pprint }}
{{ var.0 }}{{ var.1|pprint }}
-
+ {% 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 ArgsReceivers
+ + + + + + + + + {% for name, signal, receivers in signals %} + + + + - - - {% for name, signal, receivers in signals %} - - - - - - {% endfor %} - -
{% trans "Signal" %}Providing ArgsReceivers
{{ name|escape }}{{ signal.providing_args|join:", " }}{{ receivers|join:", " }}
{{ name|escape }}{{ signal.providing_args|join:", " }}{{ receivers|join:", " }}
-
+ {% 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 %} -
- - - - - - - - - - - {% for query in queries %} - - - + + + {% endfor %} + +
{% trans "Time" %} (ms){% trans "Action" %}StacktraceQuery
{{ query.time|floatformat:"2" }} - {% if query.params %} - SELECT - EXPLAIN - {% if is_mysql %} - PROFILE - {% endif %} + + + + + + + + + + + {% for query in queries %} + + + -
{% trans "Time" %} (ms){% trans "Action" %}StacktraceQuery
{{ query.time|floatformat:"2" }} + {% if query.params %} + SELECT + EXPLAIN + {% if is_mysql %} + PROFILE {% endif %} - - {% if query.stacktrace %} - - + {% endfor %} +
+ + {% endif %} +
{{ query.sql|safe }}
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 }}

-
-
-
- {{ source }} -
-
-
+ {{ source }}
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" %}
+ + + + + + + + + + + + {% for key, value in rows %} + + + - - - {% for key, value in rows %} - - - - - {% endfor %} - -
{% trans "Resource" %}{% trans "Value" %}
{{ key|escape }}{{ value|escape }}
{{ key|escape }}{{ value|escape }}
-
+ {% endfor %} + + -- cgit v1.2.3