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') 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