diff options
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 575d507..fa6bb5e 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,4 +1,4 @@ -<h3>Template path(s):</h3> +<h3>Template path{{ template_dirs|pluralize }}</h3> {% if template_dirs %} <ol> {% for template in template_dirs %} @@ -8,7 +8,7 @@ {% else %} None {% endif %} -<h3>Templates Used</h3> +<h3>Template{{ templates|pluralize }}</h3> {% if templates %} <dl> {% for template in templates %} @@ -23,3 +23,17 @@ {% else %} None {% endif %} +<h3>Context processor{{ context_processors|pluralize }}</h3> +{% if context_processors %} +<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 %} |
