diff options
| author | Alex Gaynor | 2008-10-07 17:44:52 -0400 |
|---|---|---|
| committer | Alex Gaynor | 2008-10-07 17:44:52 -0400 |
| commit | 0fea345f0d59ed0f17f29e59072f34d7d016abde (patch) | |
| tree | 4e92807011c38f90c3ba5f8207491d89a33b1007 /debug_toolbar/templates | |
| parent | c10e9814d878eb06cba33387f6b5681e47b163fb (diff) | |
| parent | 03400c2c6b00ca8310cad7f30ac215d2b80d94b2 (diff) | |
| download | django-debug-toolbar-0fea345f0d59ed0f17f29e59072f34d7d016abde.tar.bz2 | |
Merge commit 'rob/master'
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/template_source.html | 3 | ||||
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html new file mode 100644 index 0000000..572522b --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -0,0 +1,3 @@ +<a class="back" href="">« Back</a> +<h3>Template Source: <samp>{{ template_name }}</samp></h3> +{{ source }} diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index a92657b..6c918b1 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -12,7 +12,7 @@ {% if templates %} <dl> {% for template in templates %} - <dt><strong>{{ template.template.name|addslashes }}</strong></dt> + <dt><strong><a class="remoteCall" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt> <dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd> <dd> <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div> |
