diff options
| author | Aymeric Augustin | 2013-11-16 09:58:32 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-16 10:10:09 +0100 | 
| commit | 3d639ab35c2ca038d738253b93b593a755756cff (patch) | |
| tree | a7d5082b065c5ab11fcfacddfc71465d90f90993 /debug_toolbar/templates | |
| parent | 71a2c1237de8ed759c3ba415c8bfd91b62adf193 (diff) | |
| download | django-debug-toolbar-3d639ab35c2ca038d738253b93b593a755756cff.tar.bz2 | |
Avoid providing the same information through multiple paths.
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/base.html | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 424dc57..b54a343 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -9,16 +9,16 @@ if(!window.jQuery) document.write('<scr'+'ipt src="{{ STATIC_URL }}debug_toolbar  <script src="{{ STATIC_URL }}debug_toolbar/js/jquery.cookie.js"></script>  <script src="{{ STATIC_URL }}debug_toolbar/js/toolbar.js"></script>  <div id="djDebug" style="display:none;" dir="ltr" -     data-storage-id="{{ storage_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}" -     {{ TOOLBAR_ROOT_TAG_ATTRS|safe }}> +     data-storage-id="{{ toolbar.storage_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}" +     {{ toolbar.config.ROOT_TAG_ATTRS|safe }}>  	<div style="display:none;" id="djDebugToolbar">  		<ul id="djDebugPanelList"> -			{% if panels %} +			{% if toolbar.panels %}  			<li><a id="djHideToolBarButton" href="#" title="{% trans "Hide Toolbar" %}">{% trans "Hide" %} »</a></li>  			{% else %}  			<li id="djDebugButton">DEBUG</li>  			{% endif %} -			{% for panel in panels %} +			{% for panel in toolbar.panels %}  				<li class="djDebugPanelButton">  					<input type="checkbox" data-cookie="djdt{{ panel.panel_id }}" {% if panel.enabled %}checked="checked" title="{% trans "Disable for next and successive requests" %}"{% else %}title="{% trans "Enable for next and successive requests" %}"{% endif %} />  					{% if panel.has_content and panel.enabled %} @@ -44,7 +44,7 @@ if(!window.jQuery) document.write('<scr'+'ipt src="{{ STATIC_URL }}debug_toolbar  	<div style="display:none;" id="djDebugToolbarHandle">  		<span title="{% trans "Show Toolbar" %}" id="djShowToolBarButton">«</span>  	</div> -	{% for panel in panels %} +	{% for panel in toolbar.panels %}  		{% if panel.has_content and panel.enabled %}  			<div id="{{ panel.panel_id }}" class="panelContent">  				<div class="djDebugPanelTitle"> @@ -53,7 +53,7 @@ if(!window.jQuery) document.write('<scr'+'ipt src="{{ STATIC_URL }}debug_toolbar  				</div>  				<div class="djDebugPanelContent">  					<div class="scroll"> -						{% if not storage_id %}{{ panel.content }}{% endif %} +						{% if not toolbar.storage_id %}{{ panel.content }}{% endif %}  					</div>  				</div>  			</div>  | 
