diff options
| author | Rob Hudson | 2008-09-06 14:22:25 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-09-06 14:22:25 -0700 | 
| commit | abc3351bcfd3b2d1aa9c317bc592f96092226ceb (patch) | |
| tree | 820bf043bf7fb479cba830ed901df49ba108a775 /debug_toolbar/templates | |
| parent | ef40163300af9677ee16a14a0accc592b6e4b680 (diff) | |
| download | django-debug-toolbar-abc3351bcfd3b2d1aa9c317bc592f96092226ceb.tar.bz2 | |
Updating rendering to use Django templates and could possibly be overridden.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 37 | 
1 files changed, 37 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html new file mode 100644 index 0000000..c6469d4 --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -0,0 +1,37 @@ +<script type="text/javascript"> +$(document).ready(function() { +	$('.panelContent').hide(); +	// Actions +	$('#djDebugButton').click(function() { +		$('.panelContent').hide(); +	}); +	$('#djDebugPanelList a').click(function() { +		var panel_id = $(this).attr('class'); +		$('.panelContent').hide(); +		$('#' + panel_id).show(); +		return false; +	}); +}); +</script> +<div id="djDebugBlock" style="background:orange; position:absolute; top:0; right:0; height:2em;"> +	<div id="djDebugToolbar"> +		<ul id="djDebugPanelList" style="list-style:none;"> +			<li id="djDebugButton" style="color:red; font-weight:bold; display:inline;">DEBUG</li> +			{% for panel in panels %} +				<li style="display:inline;"> +					{% if panel.content %} +						<a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">{{ panel.title }}</a> +					{% else %} +						{{ panel.title }} +					{% endif %} +				</li> +			{% endfor %} +		</ul> +		{% for panel in panels %} +			<div id="{{ panel.dom_id }}" class="panelContent" style="background-color:orange; width:50%; float:right;"> +				<h1>{{ panel.title }}</h1> +				{{ panel.content|safe }} +			</div> +		{% endfor %} +	</div> +</div>  | 
