diff options
| author | Rob Hudson | 2008-09-08 10:18:41 -0700 |
|---|---|---|
| committer | Rob Hudson | 2008-09-08 10:18:41 -0700 |
| commit | ff98fc6b8ac74e3f49f2edeaaa4d8cbb6a5c4cf2 (patch) | |
| tree | 8454adbaa3b84706da2ce58da468135ab0344c74 /debug_toolbar/templates | |
| parent | e403821323d529980407c05da77409c7e1c5c2a0 (diff) | |
| download | django-debug-toolbar-ff98fc6b8ac74e3f49f2edeaaa4d8cbb6a5c4cf2.tar.bz2 | |
HTTP POST/GET panel contributed by David Cramer
Diffstat (limited to 'debug_toolbar/templates')
3 files changed, 74 insertions, 0 deletions
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 @@ +<table> + <thead> + <tr> + <th>Key</th> + <th>Value</th> + </tr> + </thead> + <tbody> + {% for key, value in headers.iteritems %} + <tr class="{% cycle 'row1' 'row2' %}"> + <td>{{ key|escape }}</td> + <td>{{ value|escape }}</td> + </tr> + {% endfor %} + </tbody> +</table>
\ 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 @@ +<div class="title">GET Variables</div> +{% if get %} + <table> + <thead> + <tr> + <th>Key</th> + <th>Value</th> + </tr> + </thead> + <tbody> + {% for key, value in get %} + <tr class="{% cycle 'row1' 'row2' %}"> + <td>{{ key|escape }}</td> + <td>{{ value|join:", "|escape }}</td> + </tr> + {% endfor %} + </tbody> + </table> +{% else %} + <p>None</p> +{% endif %} +<div class="title">POST Variables</div> +{% if post %} + <table> + <thead> + <tr> + <th>Key</th> + <th>Value</th> + </tr> + </thead> + <tbody> + {% for key, value in post %} + <tr class="{% cycle 'row1' 'row2' %}"> + <td>{{ key|escape }}</td> + <td>{{ value|join:", "|escape }}</td> + </tr> + {% endfor %} + </tbody> + </table> +{% else %} + <p>None</p> +{% 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 @@ +<table> + <thead> + <tr> + <th>Time (ms)</th> + <th>Query</th> + </tr> + </thead> + <tbody> + {% for query in queries %} + <tr class="{% cycle 'row1' 'row2' %}"> + <td>{{ query.time|floatformat:"4" }}</td> + <td>{{ query.sql|escape }}</td> + </tr> + {% endfor %} + </tbody> +</table>
\ No newline at end of file |
