From ad5b511eaa86738e6ec58a91c3601369ad60eb82 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 9 Sep 2008 12:51:28 -0700 Subject: Merging in some changes from David Cramer for the HTTP vars panel but renaming it to request vars since we've added session and cookie data (sessions have nothing to do with HTTP technically). --- .../templates/debug_toolbar/panels/http_vars.html | 42 ---------- .../debug_toolbar/panels/request_vars.html | 92 ++++++++++++++++++++++ 2 files changed, 92 insertions(+), 42 deletions(-) delete mode 100644 debug_toolbar/templates/debug_toolbar/panels/http_vars.html create mode 100644 debug_toolbar/templates/debug_toolbar/panels/request_vars.html (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/http_vars.html b/debug_toolbar/templates/debug_toolbar/panels/http_vars.html deleted file mode 100644 index 8891f30..0000000 --- a/debug_toolbar/templates/debug_toolbar/panels/http_vars.html +++ /dev/null @@ -1,42 +0,0 @@ -

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/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html new file mode 100644 index 0000000..fdb0a74 --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -0,0 +1,92 @@ +

COOKIES Variables

+{% if cookies %} + + + + + + + + + + + + + {% for key, value in cookies %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+{% else %} +

None

+{% endif %} +

SESSION Variables

+{% if session %} + + + + + + + + + + + + + {% for key, value in session %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+{% else %} +

None

+{% endif %} +

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 %} -- cgit v1.2.3