You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.9 KiB
70 lines
2.9 KiB
{% load i18n %}{% load static from staticfiles %}{% load url from future %}
|
|
<style type="text/css">
|
|
@media print { #djDebug {display:none;}}
|
|
</style>
|
|
<link rel="stylesheet" href="{% static 'debug_toolbar/css/toolbar.css' %}" type="text/css" />
|
|
{% if toolbar.config.JQUERY_URL %}
|
|
<!-- Prevent our copy of jQuery from registering as an AMD module on sites that use RequireJS. -->
|
|
<script>var _djdt_define_backup = window.define; window.define = undefined;</script>
|
|
<script src="{{ toolbar.config.JQUERY_URL }}"></script>
|
|
<script>var djdt = {jQuery: jQuery.noConflict(true)}; window.define = _djdt_define_backup;</script>
|
|
{% else %}
|
|
<script>var djdt = {jQuery: jQuery};</script>
|
|
{% endif %}
|
|
<script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script>
|
|
<div id="djDebug" style="display:none;" dir="ltr"
|
|
data-store-id="{{ toolbar.store_id }}" data-render-panel-url="{% url 'djdt:render_panel' %}"
|
|
{{ toolbar.config.ROOT_TAG_EXTRA_ATTRS|safe }}>
|
|
<div style="display:none;" id="djDebugToolbar">
|
|
<ul id="djDebugPanelList">
|
|
{% 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 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 %}
|
|
<a href="#" title="{{ panel.title }}" class="{{ panel.panel_id }}">
|
|
{% else %}
|
|
<div class="djdt-contentless{% if not panel.enabled %} djdt-disabled{% endif %}">
|
|
{% endif %}
|
|
{{ panel.nav_title }}
|
|
{% if panel.enabled %}
|
|
{% with panel.nav_subtitle as subtitle %}
|
|
{% if subtitle %}<br /><small>{{ subtitle }}</small>{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% if panel.has_content and panel.enabled %}
|
|
</a>
|
|
{% else %}
|
|
</div>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div style="display:none;" id="djDebugToolbarHandle">
|
|
<span title="{% trans "Show toolbar" %}" id="djShowToolBarButton">«</span>
|
|
</div>
|
|
{% for panel in toolbar.panels %}
|
|
{% if panel.has_content and panel.enabled %}
|
|
<div id="{{ panel.panel_id }}" class="djdt-panelContent">
|
|
<div class="djDebugPanelTitle">
|
|
<a href="" class="djDebugClose"></a>
|
|
<h3>{{ panel.title|safe }}</h3>
|
|
</div>
|
|
<div class="djDebugPanelContent">
|
|
{% if toolbar.store_id %}
|
|
<img src="{% static 'debug_toolbar/img/ajax-loader.gif' %}" alt="loading" class="djdt-loader" />
|
|
<div class="djdt-scroll"></div>
|
|
{% else %}
|
|
<div class="djdt-scroll">{{ panel.content }}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<div id="djDebugWindow" class="djdt-panelContent"></div>
|
|
</div>
|
|
|