diff options
| author | Jacob Kaplan-Moss | 2008-09-15 18:02:17 +0100 | 
|---|---|---|
| committer | Jacob Kaplan-Moss | 2008-09-15 18:02:17 +0100 | 
| commit | 5fd534e68dbd191c5d6062a39ae512b109cccbdb (patch) | |
| tree | 84eb90f2d418b321540e145e9f17e5c95f70208c /debug_toolbar/templates | |
| parent | a77ee9cee43ec01f43bebc71ad64702fa110b475 (diff) | |
| download | django-debug-toolbar-5fd534e68dbd191c5d6062a39ae512b109cccbdb.tar.bz2 | |
Modified scripts to use jQuery, and moved 'em to a better place.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 42 | 
1 files changed, 5 insertions, 37 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 637e04d..8ee29d2 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,39 +1,7 @@ -<script type="text/javascript"> -	var djDebugLastObj = null; -	function djDebugToggle(obj) { -		if (djDebugLastObj) djDebugLastObj.style.display = 'none'; -		var obj = document.getElementById(obj); -		if (!obj) return; -		if (djDebugLastObj == obj) { -			djDebugLastObj = null; -			return; -		} -		if (obj.style.display != 'block') { -			obj.style.display = 'block'; -			djDebugLastObj = obj; -		} -	} -	function djDebugClose() { -		if (!djDebugLastObj) return; -		djDebugLastObj.style.display = 'none'; -		djDebugLastObj = null; -	} -</script> +<script src="/__debug__/m/jquery.js" type="text/javascript" charset="utf-8"></script> +<script src="/__debug__/m/toolbar.js" type="text/javascript" charset="utf-8"></script>  <style type="text/css"> -	#djDebugToolbar {height:30px; background:orange; color:#000; z-index:100000000; border:1px solid #06171D; border-width:1px 0;} -	#djDebugToolbar ul {margin:0; padding:0 10px; list-style:none;} -	#djDebugToolbar li {display:inline; width:auto; position:relative; float:none; margin:0 10px 0 0; padding:0; height:20px; line-height:30px; padding:8px 10px 8px 0; border-right: 1px solid #06171D;} -	#djDebugToolbar #djDebugButton {color:red; font-weight:bold;} -	#djDebug * {margin:0; padding:0; float:none; position:static; } -	#djDebug .panelContent {display:none; position:absolute; margin:0; padding:5px; top:35px; width:auto; left:5px; right:5px; bottom:5px; background:white; color:black; border:1px solid black; z-index:1000000; overflow:auto;} -	#djDebug .panelContent p {padding: 0 5px;} -	#djDebug .panelContent p, #djDebug .panelContent table, #djDebug .panelContent ul, #djDebug .panelContent dl {margin:5px 0;} -	#djDebug .close {float:right; font-weight:bold;} -	#djDebug .panelContent dt, #djDebug .panelContent dd {display: block;} -	#djDebug .panelContent dd {margin-left:10px;} -	#djDebug th, #djDebug td {padding: 5px;} -	#djDebug .row1 td {background:#fff;} -	#djDebug .row2 td {background:#ddd;} +  @import url(/__debug__/m/toolbar.css);  </style>  <div id="djDebug">  	<div id="djDebugToolbar"> @@ -42,7 +10,7 @@  			{% for panel in panels %}  				<li>  					{% if panel.has_content %} -						<a href="{{ panel.url|default:"#" }}" onclick="djDebugToggle('{{ panel.dom_id }}')" title="{{ panel.title }}" class="{{ panel.dom_id }}">{{ panel.title }}</a> +						<a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">{{ panel.title }}</a>  					{% else %}  						{{ panel.title }}  					{% endif %} @@ -54,7 +22,7 @@  		{% if panel.has_content %}  			<div id="{{ panel.dom_id }}" class="panelContent">  				<div class="title"> -					<a href="" onclick="djDebugClose()" class="close">Close</a> +					<a href="" class="close">Close</a>  				</div>  				{{ panel.content|safe }}  			</div>  | 
