aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIdan Gazit2009-08-12 15:18:47 +0300
committerIdan Gazit2009-08-12 15:18:47 +0300
commite11bfdac25d48019377f64131b78f4462e9d005f (patch)
treebbe49dd5761453997eb99fbc802347c55f7e76ec
parent59874f33145722c6bb2d1fedb3d0679e6ce2caba (diff)
downloaddjango-debug-toolbar-e11bfdac25d48019377f64131b78f4462e9d005f.tar.bz2
oops, retitled templates panel
-rw-r--r--debug_toolbar/panels/template.py3
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html5
2 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 6eb826f..8c6a972 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -7,7 +7,6 @@ from django.dispatch import Signal
from django.template.context import get_standard_processors
from django.template.loader import render_to_string
from django.test.signals import template_rendered
-from django.template.defaultfilters import pluralize
from debug_toolbar.panels import DebugPanel
# Code taken and adapted from Simon Willison and Django Snippets:
@@ -46,7 +45,7 @@ class TemplateDebugPanel(DebugPanel):
return 'Templates'
def title(self):
- return 'Template path%s:' % pluralize(len(self.templates))
+ return 'Templates'
def url(self):
return ''
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index 78519c9..01240f7 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -1,3 +1,4 @@
+<h4>Template path{{ template_dirs|length|pluralize }}</h4>
{% if template_dirs %}
<ol>
{% for template in template_dirs %}
@@ -7,7 +8,7 @@
{% else %}
<p>None</p>
{% endif %}
-<h3>Template{{ templates|length|pluralize }}</h3>
+<h4>Template{{ templates|length|pluralize }}</h4>
{% if templates %}
<dl>
{% for template in templates %}
@@ -22,7 +23,7 @@
{% else %}
<p>None</p>
{% endif %}
-<h3>Context processor{{ context_processors|length|pluralize }}</h3>
+<h4>Context processor{{ context_processors|length|pluralize }}</h4>
{% if context_processors %}
<dl>
{% for key, value in context_processors.iteritems %}