mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-01-05 21:20:12 -06:00
- Rename the package to flask_debugtoolbar - Fix importing of the panels so that the views in the panels are correctly registered in the blueprint There is still one major problem in the sqlalchemy panel where we are not able to get the SQLAlchemy reference
38 lines
773 B
HTML
38 lines
773 B
HTML
<div class="flDebugPanelTitle">
|
|
<a class="flDebugClose flDebugBack" href="">Back</a>
|
|
<h3>SQL Explained</h3>
|
|
</div>
|
|
<div class="flDebugPanelContent">
|
|
<div class="scroll">
|
|
<dl>
|
|
<dt>Executed SQL</dt>
|
|
<dd>{{ sql|safe }}</dd>
|
|
<dt>Time</dt>
|
|
<dd>{{ '%.4f'|format(duration) }} ms</dd>
|
|
</dl>
|
|
{% if result %}
|
|
<table class="flSqlSelect">
|
|
<thead>
|
|
<tr>
|
|
{% for h in headers %}
|
|
<th>{{ h|upper }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in result %}
|
|
<tr class="{{ loop.cycle('fjDebugOdd' 'fjDebugEven') }}">
|
|
{% for column in row %}
|
|
<td>{{ column }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>Empty set</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|