aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorAlex Gaynor2009-05-27 19:17:24 -0700
committerRob Hudson2009-05-27 19:18:28 -0700
commit1956ee540c75f9d4226f0352df5b06aae5c02703 (patch)
tree40cd6981c02dc58e0197586846f256cac07bb745 /debug_toolbar/templates
parent08b6a97d759e9808962cafd5a5ef3bab3642ccdb (diff)
downloaddjango-debug-toolbar-1956ee540c75f9d4226f0352df5b06aae5c02703.tar.bz2
Adding a signals panel to display list of signals and their providing arguments
and receivers. Thanks Alex Gaynor! Signed-off-by: Rob Hudson <rob@cogit8.org>
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/signals.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html
new file mode 100644
index 0000000..e9a189e
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html
@@ -0,0 +1,19 @@
+<h3>Signals</h3>
+<table>
+ <thead>
+ <tr>
+ <th>Signal</th>
+ <th>Providing Args</th>
+ <th>Receivers</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for name, signal, receivers in signals %}
+ <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
+ <td>{{ name|escape }}</td>
+ <td>{{ signal.providing_args|join:", " }}</td>
+ <td>{{ receivers|join:", " }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>