Debian Codegraph @

src/flask_debugtoolbar/templates/base.html

raw
1 <div id="flDebug" style="display:none;" role="navigation">
2 <script type="text/javascript">var DEBUG_TOOLBAR_STATIC_PATH = '{{ static_path }}'</script>
3 <script type="text/javascript" src="{{ static_path }}js/jquery.js"></script>
4 <!-- Temporarily adding jquery-migrate during the Jquery upgrade process, this can be removed post-upgrade -->
5 <script src="{{ static_path }}js/jquery-migrate.js"></script>
6 <script type="text/javascript" src="{{ static_path }}js/jquery.tablesorter.js"></script>
7 <script type="text/javascript" src="{{ static_path }}js/toolbar.js"></script>
8
9 <div style="display: none;" id="flDebugToolbar">
10 <ol id="flDebugPanelList">
11 {% if panels %}
12 <li><a id="flDebugHideToolBarButton" href="#" title="Hide Toolbar">Hide &raquo;</a></li>
13 {% else %}
14 <li id="flDebugButton">DEBUG</li>
15 {% endif %}
16
17 {% for panel in panels %}
18 <li id="{{ panel.dom_id() }}">
19 {% if panel.has_content %}
20 <a href="{{ panel.url()|default("#") }}" title="{{ panel.title() }}" class="{{ panel.dom_id() }}">
21 {% else %}
22 <div class="flDebugContentless">
23 {% endif %}
24
25 {{ panel.nav_title() }}
26 {% if panel.nav_subtitle() %}<br /><small>{{ panel.nav_subtitle() }}</small>{% endif %}
27
28 {% if panel.has_content %}
29 </a>
30 {% else %}
31 </div>
32 {% endif %}
33 {% if panel.user_activate %}
34 <span class="flDebugSwitch {{ 'flDebugActive' if panel.is_active else 'flDebugInactive' }}" title="Enable or disable the panel"></span>
35 {% endif %}
36 </li>
37 {% endfor %}
38 </ol>
39 </div>
40 <div style="display:none;" id="flDebugToolbarHandle">
41 <a title="Show Toolbar" id="flDebugShowToolBarButton" href="#">&laquo;</a>
42 </div>
43 {% for panel in panels %}
44 {% if panel.has_content %}
45 <div id="{{ panel.dom_id() }}-content" class="flDebugPanelContentParent">
46 <div class="flDebugPanelTitle">
47 <a href="" class="flDebugClose">Close</a>
48 <h3>{{ panel.title()|safe }}</h3>
49 </div>
50 <div class="flDebugPanelContent">
51 <div class="flDebugScroll">
52 {{ panel.content()|safe }}
53 </div>
54 </div>
55 </div>
56 {% endif %}
57 {% endfor %}
58 <div id="flDebugWindow" class="flDebugPanelContentParent"></div>
59 </div>