datatracker/ietf/templates/debug.html
Henrik Levkowetz d713728072 Merged in [9595] from rcross@amsl.com:
Fixed an issue where an authorized individual was unable to add an incoming liaison.  Fixed a problem with the incoming liaison form requiring a deadline date for information only statements.
 - Legacy-Id: 9605
Note: SVN reference [9595] has been migrated to Git commit fca04d97e5
2015-05-06 17:22:13 +00:00

38 lines
1 KiB
HTML

{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}{% origin %}
{% if debug %}
{% load ietf_filters %}
{% load future %}
<div id="debug" style="clear: left;">
<h3>SQL Queries</h3>
<p>
{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s)
{% if sql_queries|length != 0 %}
<a class="btn btn-default btn-sm" onclick="document.getElementById('debug-query-table').style.display='table';">Show</a>
{% endif %}
</p>
<table class="table table-condensed table-striped" id="debug-query-table" 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>
<td>{{ forloop.counter }}</td>
<td>{{ query.sql|expand_comma|escape }}</td>
<td>{{ query.time }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}