mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-29 01:59:25 +01:00
31 lines
953 B
HTML
31 lines
953 B
HTML
{% if debug %}
|
|
<div id="debug" style='clear: both;padding-top: 200px'>
|
|
<h2>Queries</h2>
|
|
<p>
|
|
{{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }}
|
|
{% ifnotequal sql_queries|length 0 %}
|
|
(<span style="cursor: pointer;" onclick="var s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show';">Show</span>)
|
|
{% endifnotequal %}
|
|
</p>
|
|
<table id="debugQueryTable" style="display: none;">
|
|
<col width="1"></col>
|
|
<col></col>
|
|
<col width="1"></col>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">SQL</th>
|
|
<th scope="col">Time</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for query in sql_queries %}<tr class="{% cycle odd,even %}">
|
|
<td>{{ forloop.counter }}</td>
|
|
<td>{{ query.sql|escape }}</td>
|
|
<td>{{ query.time }}</td>
|
|
</tr>{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|