From c4abcc6cfffe060fe7a188d01a972933afef7615 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Fri, 11 Sep 2009 15:47:18 -0700 Subject: Wrapped subpanel content with div.scroll and fixed a few minor CSS problems. --- .../debug_toolbar/panels/sql_explain.html | 48 +++++++++-------- .../debug_toolbar/panels/sql_profile.html | 62 +++++++++++----------- .../templates/debug_toolbar/panels/sql_select.html | 56 +++++++++---------- 3 files changed, 86 insertions(+), 80 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index 57fa538..586bc25 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,31 +1,33 @@ {% load i18n %}
{% trans "Back" %} -

SQL Explained

+

{% trans "SQL Explained" %}

-
-
{% trans "Executed SQL" %}
-
{{ sql|safe }}
-
{% trans "Time" %}
-
{{ duration }} ms
-
- - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+
+
{% trans "Executed SQL" %}
+
{{ sql|safe }}
+
{% trans "Time" %}
+
{{ duration }} ms
+
+
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
+ + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + +
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html index a3d3240..f551a6f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,38 +1,40 @@ {% load i18n %}
{% trans "Back" %} -

SQL Profiled

+

{% trans "SQL Profiled" %}

- {% if result %} -
-
{% trans "Executed SQL" %}
-
{{ sql|safe }}
-
{% trans "Time" %}
-
{{ duration }} ms
-
- - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ {% if result %} +
+
{% trans "Executed SQL" %}
+
{{ sql|safe }}
+
{% trans "Time" %}
+
{{ duration }} ms
+
+
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
- {% else %} -
-
{% trans 'Error' %}
-
{{ result_error }}
-
- {% endif %} + + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + + {% else %} +
+
{% trans 'Error' %}
+
{{ result_error }}
+
+ {% endif %} +
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index a240b07..fd839eb 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,35 +1,37 @@ {% load i18n %}
{% trans "Back" %} -

SQL Selected

+

{% trans "SQL Selected" %}

-
-
{% trans "Executed SQL" %}
-
{{ sql|safe }}
-
{% trans "Time" %}
-
{{ duration }} ms
-
- {% if result %} - - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+
+
{% trans "Executed SQL" %}
+
{{ sql|safe }}
+
{% trans "Time" %}
+
{{ duration }} ms
+
+ {% if result %} +
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
- {% else %} -

{% trans "Empty set" %}

- {% endif %} + + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + + {% else %} +

{% trans "Empty set" %}

+ {% endif %} +
-- cgit v1.2.3