From f97ff555a4d8f22dae83bcfd0c2dcf6e846962c9 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Fri, 28 Aug 2009 09:21:39 -0700
Subject: Refactored SQL panel to use datetime objects and added a visual
display of both duration and sequence to the SQL template.
---
debug_toolbar/templates/debug_toolbar/panels/sql.html | 15 ++++++++++-----
.../templates/debug_toolbar/panels/sql_explain.html | 4 ++--
.../templates/debug_toolbar/panels/sql_profile.html | 4 ++--
.../templates/debug_toolbar/panels/sql_select.html | 4 ++--
4 files changed, 16 insertions(+), 11 deletions(-)
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index 7aa4c2d..9c8bfa6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -11,13 +11,13 @@
{% for query in queries %}
- | {{ query.time|floatformat:"2" }} |
+ {{ query.duration|floatformat:"2" }} |
{% if query.params %}
- SELECT
- EXPLAIN
+ SELECT
+ EXPLAIN
{% if is_mysql %}
- PROFILE
+ PROFILE
{% endif %}
{% endif %}
|
@@ -42,7 +42,12 @@
{% endif %}
- {{ query.sql|safe }} |
+
+
+ {{ query.sql|safe }}
+
+
+ |
{% endfor %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index 38249b3..a21ec59 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -6,9 +6,9 @@
- {% trans "Executed SQL" %}
- {{ sql|safe }}
+ - {{ sql|safe }}
- {% trans "Time" %}
- - {{ time }} ms
+ - {{ duration }} ms
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index 0dcb0b9..a15574e 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -7,9 +7,9 @@
{% if result %}
- {% trans "Executed SQL" %}
- {{ sql|safe }}
+ - {{ sql|safe }}
- {% trans "Time" %}
- - {{ time }} ms
+ - {{ duration }} ms
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index e4d6027..66835c8 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -6,9 +6,9 @@
- {% trans "Executed SQL" %}
- {{ sql|safe }}
+ - {{ sql|safe }}
- {% trans "Time" %}
- - {{ time }} ms
+ - {{ duration }} ms
{% if result %}