From ff98fc6b8ac74e3f49f2edeaaa4d8cbb6a5c4cf2 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 8 Sep 2008 10:18:41 -0700 Subject: HTTP POST/GET panel contributed by David Cramer --- .../templates/debug_toolbar/panels/headers.html | 16 +++++++++ .../templates/debug_toolbar/panels/http_vars.html | 42 ++++++++++++++++++++++ .../templates/debug_toolbar/panels/sql.html | 16 +++++++++ 3 files changed, 74 insertions(+) create mode 100644 debug_toolbar/templates/debug_toolbar/panels/headers.html create mode 100644 debug_toolbar/templates/debug_toolbar/panels/http_vars.html create mode 100644 debug_toolbar/templates/debug_toolbar/panels/sql.html (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html new file mode 100644 index 0000000..61c6b83 --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -0,0 +1,16 @@ + + + + + + + + + {% for key, value in headers.iteritems %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/http_vars.html b/debug_toolbar/templates/debug_toolbar/panels/http_vars.html new file mode 100644 index 0000000..44f3497 --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/http_vars.html @@ -0,0 +1,42 @@ +
GET Variables
+{% if get %} + + + + + + + + + {% for key, value in get %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
+{% else %} +

None

+{% endif %} +
POST Variables
+{% if post %} + + + + + + + + + {% for key, value in post %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
+{% else %} +

None

+{% endif %} \ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html new file mode 100644 index 0000000..3d6a966 --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -0,0 +1,16 @@ + + + + + + + + + {% for query in queries %} + + + + + {% endfor %} + +
Time (ms)Query
{{ query.time|floatformat:"4" }}{{ query.sql|escape }}
\ No newline at end of file -- cgit v1.2.3