From 9a2c33736aeee1016e45ef655d8c58690555152c Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 25 Jan 2013 23:56:55 +1100 Subject: New debug page: ?/debug/sql --- templates/mod/debug/sql.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 templates/mod/debug/sql.html (limited to 'templates/mod/debug/sql.html') diff --git a/templates/mod/debug/sql.html b/templates/mod/debug/sql.html new file mode 100644 index 00000000..63ba22f8 --- /dev/null +++ b/templates/mod/debug/sql.html @@ -0,0 +1,26 @@ +
+ + + +
+ +{% if result == 'empty' %} +

Query successful (no result).

+{% elseif result %} + + + {% for key in keys %} + + {% endfor %} + + {% for row in result %} + + {% for col in row %} + + {% endfor %} + + {% endfor %} +
{{ key }}
{{ col }}
+{% elseif error %} +

{{ error }}

+{% endif %} -- cgit v1.3 From db1b50cfc3a7f3b45891b0ff69db4892b0e6929e Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 26 Jan 2013 00:00:39 +1100 Subject: Escape result in ?/debug/sql --- templates/mod/debug/sql.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/mod/debug/sql.html') diff --git a/templates/mod/debug/sql.html b/templates/mod/debug/sql.html index 63ba22f8..755995f9 100644 --- a/templates/mod/debug/sql.html +++ b/templates/mod/debug/sql.html @@ -10,17 +10,17 @@ {% for key in keys %} - + {% endfor %} {% for row in result %} {% for col in row %} - + {% endfor %} {% endfor %}
{{ key }}{{ key | e }}
{{ col }}{{ col | e }}
{% elseif error %} -

{{ error }}

+

{{ error | e }}

{% endif %} -- cgit v1.3