aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorJannis Leidel2013-12-23 12:43:49 +0100
committerJannis Leidel2013-12-23 12:43:49 +0100
commit4225671177f9f65e873ddbab373e5968c2afa8fc (patch)
tree7c7b8f5280ed84d49af311a56e1039706ce9029a /debug_toolbar/templates
parent9298aff6ed93cd2463730f31c1576bf9e396084e (diff)
downloaddjango-debug-toolbar-4225671177f9f65e873ddbab373e5968c2afa8fc.tar.bz2
Fix staticfiles panel to work with prefixed STATICFILES_DIRS.
Closes #503 and #507. Many thanks to Alexander Clausen (@sk1p) for the inspiration for the patch.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/staticfiles.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
index eb413b5..95c9ec8 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
@@ -4,8 +4,8 @@
<h4>{% blocktrans count staticfiles_dirs|length as dirs_count %}Static file path{% plural %}Static file paths{% endblocktrans %}</h4>
{% if staticfiles_dirs %}
<ol>
- {% for staticfiles_dir in staticfiles_dirs %}
- <li>{{ staticfiles_dir }}</li>
+ {% for prefix, staticfiles_dir in staticfiles_dirs %}
+ <li>{{ staticfiles_dir }}{% if prefix %} {% blocktrans %}(prefix {{ prefix }}){% endblocktrans %}{% endif %}</li>
{% endfor %}
</ol>
{% else %}