aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorJannis Leidel2013-12-09 17:42:04 +0100
committerJannis Leidel2013-12-09 17:42:04 +0100
commite75309b712537f3ee53005bf6330057c9640be21 (patch)
treee83b9943c1cf4ee53754922629417468bfcaa153 /debug_toolbar/templates
parent2359b2e61d4f6018049042b3213a91af2b4db9fc (diff)
downloaddjango-debug-toolbar-e75309b712537f3ee53005bf6330057c9640be21.tar.bz2
Another pass over the staticfiles panel.
- adds some docstrings - adds some basic tests - adds the staticfiles panel to the default list of panels - fixed a pluralization bug in the template - refactored some things into own methods for easier testing
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/staticfiles.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
index e405a25..eb413b5 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
@@ -37,7 +37,7 @@
{% for finder, payload in staticfiles_finders.items %}
-<h4>{{ finder }} ({{ payload|length }} files)</h4>
+<h4>{{ finder }} ({% blocktrans count payload|length as payload_count %}{{ payload_count }} file{% plural %}{{ payload_count }} files{% endblocktrans %})</h4>
<table>
<thead>
<tr>