diff options
| author | Jannis Leidel | 2013-12-23 12:43:49 +0100 | 
|---|---|---|
| committer | Jannis Leidel | 2013-12-23 12:43:49 +0100 | 
| commit | 4225671177f9f65e873ddbab373e5968c2afa8fc (patch) | |
| tree | 7c7b8f5280ed84d49af311a56e1039706ce9029a /debug_toolbar/templates | |
| parent | 9298aff6ed93cd2463730f31c1576bf9e396084e (diff) | |
| download | django-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.html | 4 | 
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 %}  | 
