From 924361de6c1c87a5dd4db0e37b94380246d85790 Mon Sep 17 00:00:00 2001
From: Alex Gaynor
Date: Fri, 18 Sep 2009 19:29:32 -0400
Subject: Made the versions panel more powerful
---
.../templates/debug_toolbar/panels/versions.html | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 debug_toolbar/templates/debug_toolbar/panels/versions.html
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/versions.html b/debug_toolbar/templates/debug_toolbar/panels/versions.html
new file mode 100644
index 0000000..f0ee012
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/versions.html
@@ -0,0 +1,18 @@
+{% load i18n %}
+
+
+
+
+ | {% trans "Package" %} |
+ {% trans "Version" %} |
+
+
+
+ {% for package, version in versions.iteritems %}
+
+ | {{ package }} |
+ {{ version }} |
+
+ {% endfor %}
+
+
--
cgit v1.2.3
From c1d19af25d3f7e76520eb93bc45d0860add6e38f Mon Sep 17 00:00:00 2001
From: Chris Lamb
Date: Wed, 14 Oct 2009 14:34:25 +0100
Subject: Move the stacktrace underneath the SQL - current column is too narrow
Signed-off-by: Chris Lamb
Signed-off-by: Rob Hudson
---
.../templates/debug_toolbar/panels/sql.html | 34 ++++++++++++----------
1 file changed, 18 insertions(+), 16 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 c275bea..038deaf 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -26,27 +26,29 @@
{% if query.stacktrace %}
-
-
-
- | {% trans "Line" %} |
- {% trans "Method" %} |
- {% trans "File" %} |
-
- {% for file, line, method in query.stacktrace %}
-
- | {{ line }} |
- {{ method|escape }} |
- {{ file|escape }} |
-
- {% endfor %}
-
-
{% endif %}
|
{{ query.sql|safe }}
+ {% if query.stacktrace %}
+
+
+
+ | {% trans "Line" %} |
+ {% trans "Method" %} |
+ {% trans "File" %} |
+
+ {% for file, line, method in query.stacktrace %}
+
+ | {{ line }} |
+ {{ method|escape }} |
+ {{ file|escape }} |
+
+ {% endfor %}
+
+
+ {% endif %}
|
--
cgit v1.2.3
From 3f81a95105381a0ffabc46ae6ab84d69ace89720 Mon Sep 17 00:00:00 2001
From: Chris Lamb
Date: Wed, 14 Oct 2009 14:45:51 +0100
Subject: Show context where SQL query originated from template
Signed-off-by: Chris Lamb
Signed-off-by: Rob Hudson
---
debug_toolbar/templates/debug_toolbar/panels/sql.html | 11 +++++++++++
1 file changed, 11 insertions(+)
(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 038deaf..331306b 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -47,6 +47,17 @@
{% endfor %}
+ {% if query.template_info %}
+
+ {% for line in query.template_info.context %}
+
+ | {{ line.num }} |
+ {{ line.content }} |
+
+ {% endfor %}
+
+ {{ query.template_info.name|default:"(unknown)" }}
+ {% endif %}
{% endif %}
--
cgit v1.2.3