From f40ad85645f27fc4b80683acdbefd01a1da51afd Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Sat, 20 Sep 2008 17:00:19 -0700
Subject: Updating SQL panel to use Pygments for SQL highlighting if it's
available, moving the EXPLAIN link to the left to avoid scrolling.
I have a feeling that the SQL panel could use a serious security review since
we're passing SQL in via GET which is, I'm sure, a big no-no.
---
debug_toolbar/templates/debug_toolbar/panels/sql.html | 4 ++--
debug_toolbar/templates/debug_toolbar/panels/sql_explain.html | 2 +-
2 files changed, 3 insertions(+), 3 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 bd167bc..4663047 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -3,16 +3,16 @@
Time (ms)
- Query
Action
+ Query
{{ query.sql|wordwrap:80|escape }}{{ sql|wordwrap:80 }}{{ sql|safe }}