Debian Codegraph @

src/flask_debugtoolbar/templates/panels/sqlalchemy_select.html

raw
1 <div class="flDebugPanelTitle">
2 <a class="flDebugClose flDebugBack" href="">Back</a>
3 <h3>SQL Details</h3>
4 </div>
5 <div class="flDebugPanelContent">
6 <div class="flDebugScroll">
7 <dl>
8 <dt>Executed SQL</dt>
9 <dd>{{ sql }}</dd>
10 <dt>Original query duration</dt>
11 <dd>{{ '%.4f'|format(duration * 1000) }} ms</dd>
12 </dl>
13 {% if result %}
14 <table class="flDebugSelect">
15 <thead>
16 <tr>
17 {% for h in headers %}
18 <th>{{ h|upper }}</th>
19 {% endfor %}
20 </tr>
21 </thead>
22 <tbody>
23 {% for row in result %}
24 <tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
25 {% for column in row %}
26 <td>{{ column }}</td>
27 {% endfor %}
28 </tr>
29 {% endfor %}
30 </tbody>
31 </table>
32 {% else %}
33 <p>Empty set</p>
34 {% endif %}
35 </div>
36 </div>