diff options
| author | Jannis Leidel | 2008-09-24 12:40:02 +0200 |
|---|---|---|
| committer | Jannis Leidel | 2008-09-24 12:40:02 +0200 |
| commit | d74431411b5c390379bcac89a60628a26365d8c9 (patch) | |
| tree | 32969f694832244a68b4b7da4d9b9af3991798be /debug_toolbar/templates | |
| parent | 39ceacf7c90a984efe21d3d67d30767ffcb97497 (diff) | |
| download | django-debug-toolbar-d74431411b5c390379bcac89a60628a26365d8c9.tar.bz2 | |
Added context processors to TemplateDebugPanel
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 575d507..e878be2 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -23,3 +23,17 @@ {% else %} None {% endif %} +{% if context_processors %} +<h3>Context processors used:</h3> +<dl> +{% for key, value in context_processors.iteritems %} + <dt><strong>{{ key|escape }}</strong></dt> + <dd> + <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div> + <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ value|escape }}</pre></div> + </dd> +{% endfor %} +</dl> +{% else %} + None +{% endif %} |
