From ecd7f2abe62996b19720e9ade61b45eafac590e8 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 24 Aug 2009 11:24:38 -0700 Subject: Make panel content stylings look like Django's debug template. --- debug_toolbar/templates/debug_toolbar/base.html | 14 ++--- .../debug_toolbar/panels/sql_explain.html | 52 ++++++++++--------- .../debug_toolbar/panels/sql_profile.html | 52 ++++++++++--------- .../templates/debug_toolbar/panels/sql_select.html | 60 ++++++++++++---------- 4 files changed, 95 insertions(+), 83 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 401677a..d0f4562 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -50,13 +50,13 @@ {% for panel in panels %} {% if panel.has_content %}
- Close -

{{ panel.title|safe }}

-
-
- {{ panel.content|safe }} -
-
+
+ Close +

{{ panel.title|safe }}

+
+
+ {{ panel.content|safe }} +
{% endif %} {% endfor %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index a163b25..d26a8a3 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,26 +1,30 @@ -« Back -

SQL Explained

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
- - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Explained

+
+
+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} 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 e46f41d..c5410f8 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,26 +1,30 @@ -« Back -

SQL Profiled

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
- - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Profiled

+
+
+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} 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_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index 17e7d48..4fc928d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,30 +1,34 @@ -« Back -

SQL Selected

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
-{% if result %} - - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Selected

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

Empty set

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

Empty set

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