diff options
| author | Rob Hudson | 2008-09-18 13:43:13 -0700 |
|---|---|---|
| committer | Rob Hudson | 2008-09-18 13:43:13 -0700 |
| commit | e40b2c0fbdbd932be5f9d0550a16b6652de0d38d (patch) | |
| tree | f26f3c7456c6f3c47cb168472f1994c449c24b60 /debug_toolbar/templates | |
| parent | 816889b61cdd8bd1380009cfc755f9f655406e5c (diff) | |
| download | django-debug-toolbar-e40b2c0fbdbd932be5f9d0550a16b6652de0d38d.tar.bz2 | |
I noticed the template_rendered signal from the test suite also passed context,
so I'm including the context with each template in the Template panel. This
should make the designers happy.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index f9f03b5..ee93708 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -12,8 +12,12 @@ {% if templates %} <dl> {% for template in templates %} - <dt><strong>{{ template.0|addslashes }}</strong></dt> - <dd><samp>{{ template.1|addslashes }}</samp></dd> + <dt><strong>{{ template.template.name|addslashes }}</strong></dt> + <dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd> + <dd> + <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div> + <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div> + </dd> {% endfor %} </dl> {% else %} |
