From 184992f2d5773016e2c8315c91acbf8f601775bf Mon Sep 17 00:00:00 2001
From: Jannis Leidel
Date: Fri, 6 Apr 2012 12:59:56 +0200
Subject: Added staticfiles panel class.
---
.../templates/debug_toolbar/panels/cache.html | 6 +--
.../debug_toolbar/panels/staticfiles.html | 57 ++++++++++++++++++++++
2 files changed, 60 insertions(+), 3 deletions(-)
create mode 100644 debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
(limited to 'debug_toolbar/templates')
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 595afd6..82ccc49 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -1,5 +1,5 @@
{% load i18n %}
-
{% trans "Summary" %}
+{% trans "Summary" %}
-{% trans "Commands" %}
+{% trans "Commands" %}
{% if calls %}
-{% trans "Calls" %}
+{% trans "Calls" %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
new file mode 100644
index 0000000..e405a25
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
@@ -0,0 +1,57 @@
+{% load i18n %}
+{% load static from staticfiles%}
+
+{% blocktrans count staticfiles_dirs|length as dirs_count %}Static file path{% plural %}Static file paths{% endblocktrans %}
+{% if staticfiles_dirs %}
+
+ {% for staticfiles_dir in staticfiles_dirs %}
+ - {{ staticfiles_dir }}
+ {% endfor %}
+
+{% else %}
+ {% trans "None" %}
+{% endif %}
+
+{% blocktrans count staticfiles_apps|length as apps_count %}Static file app{% plural %}Static file apps{% endblocktrans %}
+{% if staticfiles_apps %}
+
+ {% for static_app in staticfiles_apps %}
+ - {{ static_app }}
+ {% endfor %}
+
+{% else %}
+ {% trans "None" %}
+{% endif %}
+
+{% blocktrans count staticfiles|length as staticfiles_count %}Static file{% plural %}Static files{% endblocktrans %}
+{% if staticfiles %}
+
+{% for staticfile in staticfiles %}
+ - {{ staticfile }}
+ - {{ staticfile.real_path }}
+{% endfor %}
+
+{% else %}
+ {% trans "None" %}
+{% endif %}
+
+
+{% for finder, payload in staticfiles_finders.items %}
+{{ finder }} ({{ payload|length }} files)
+
+
+
+ | {% trans 'Path' %} |
+ {% trans 'Location' %} |
+
+
+
+ {% for path, real_path in payload %}
+
+ | {{ path }} |
+ {{ real_path }} |
+
+ {% endfor %}
+
+
+{% endfor %}
--
cgit v1.2.3