diff options
| author | Aymeric Augustin | 2013-11-01 13:35:56 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-01 13:35:56 +0100 |
| commit | 30180ec9a3d82752e309f5d0f9c685dec097e40d (patch) | |
| tree | c04327311efbaa51d324e9564bc7199671e19652 /debug_toolbar/templates | |
| parent | 842ed8a0e9d4e4ccadd6114147f8e2805b0a251c (diff) | |
| download | django-debug-toolbar-30180ec9a3d82752e309f5d0f9c685dec097e40d.tar.bz2 | |
Add response headers to the Headers panel.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/headers.html | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 6b057e9..c7f01a2 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -1,6 +1,6 @@ {% load i18n %} -<h4>{% trans "HTTP Headers" %}</h4> +<h4>{% trans "Request Headers" %}</h4> <table> <thead> @@ -10,7 +10,26 @@ </tr> </thead> <tbody> - {% for key, value in headers.items %} + {% for key, value in request_headers.items %} + <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}"> + <td>{{ key|escape }}</td> + <td>{{ value|escape }}</td> + </tr> + {% endfor %} + </tbody> +</table> + +<h4>{% trans "Response Headers" %}</h4> + +<table> + <thead> + <tr> + <th>{% trans "Key" %}</th> + <th>{% trans "Value" %}</th> + </tr> + </thead> + <tbody> + {% for key, value in response_headers.items %} <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}"> <td>{{ key|escape }}</td> <td>{{ value|escape }}</td> |
