aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-14 22:23:51 +0100
committerAymeric Augustin2013-11-15 21:58:35 +0100
commit4cce59d4c244a755181de5579dabc0d0e26335ee (patch)
treee5ffb362daaeb5061cd8878c506d5de1a3847538 /debug_toolbar/templates
parent4172e9fa7885ff16be95dc78aad044724cba6464 (diff)
downloaddjango-debug-toolbar-4cce59d4c244a755181de5579dabc0d0e26335ee.tar.bz2
Move some panel-specific javascript in specific files.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/profiling.html4
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/timer.html3
3 files changed, 7 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
index f2d43de..34ecc87 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/profiling.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
@@ -40,4 +40,6 @@
{% endif %}
{% endfor %}
</tbody>
-</table> \ No newline at end of file
+</table>
+
+<script src="{{ STATIC_URL }}debug_toolbar/js/toolbar.profiling.js"></script>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index 5cbb742..dbe93f8 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -42,3 +42,5 @@
{% else %}
<p>{% trans 'None' %}</p>
{% endif %}
+
+<script src="{{ STATIC_URL }}debug_toolbar/js/toolbar.template.js"></script>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html
index 74cf0c7..977386d 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/timer.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html
@@ -21,7 +21,7 @@
</tbody>
</table>
-<!-- This hidden div is populated and displayed by code in toolbar.js -->
+<!-- This hidden div is populated and displayed by code in toolbar.timer.js -->
<div id="djDebugBrowserTiming" style="display:none">
<h4>{% trans 'Browser Timing' %}</h4>
<table>
@@ -41,3 +41,4 @@
</tbody>
</table>
</div>
+<script src="{{ STATIC_URL }}debug_toolbar/js/toolbar.timer.js"></script>