Summary: Include SQL debug thing again in base template
- Legacy-Id: 8963
This commit is contained in:
parent
c365f99e20
commit
bf34218806
|
@ -2,14 +2,14 @@
|
|||
{% if debug %}
|
||||
{% load ietf_filters %}
|
||||
<div id="debug" style="clear: left;">
|
||||
<h2>Queries</h2>
|
||||
<h3>SQL Queries</h3>
|
||||
<p>
|
||||
{{ sql_queries|length }} Queries ({{ sql_queries|timesum }}s)
|
||||
{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s)
|
||||
{% if sql_queries|length != 0 %}
|
||||
(<span style="cursor: pointer;" onclick="document.getElementById('debugQueryTable').style.display='';">Show</span>)
|
||||
<a class="btn btn-default btn-sm" onclick="document.getElementById('debug-query-table').style.display='';">Show</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<table id="debugQueryTable" style="display: none;">
|
||||
<table class="table table-condensed table-striped" id="debug-query-table" style="display: none;">
|
||||
<col width="1"></col>
|
||||
<col></col>
|
||||
<col width="1"></col>
|
||||
|
@ -22,7 +22,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{% for query in sql_queries %}
|
||||
<tr class="{% cycle odd,even %}">
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td>
|
||||
<td>{{ query.sql|expand_comma|escape }}</td>
|
||||
<td>{{ query.time }}</td>
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
<link rel="apple-touch-icon-precomposed" href="/facelift/images/ietficon.png">
|
||||
</head>
|
||||
|
||||
{% filter amp|smartypants %}
|
||||
<body {% block bodyAttrs %}{%endblock%}>
|
||||
<div class="modal fade" id="navmodal" tabindex="-1" role="dialog" {#aria-labelledby="navmodallabel"#} aria-hidden="true">
|
||||
<body {% block bodyAttrs %}{%endblock%}>
|
||||
{% filter amp|smartypants %}
|
||||
<div class="modal fade" id="navmodal" tabindex="-1" role="dialog" {#aria-labelledby="navmodallabel"#} aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{% comment %}
|
||||
|
@ -179,8 +179,10 @@
|
|||
//]]>
|
||||
$(".leftmenu").removeClass("col-xs-3 col-md-2").addClass("col-lg-2 hidden-md hidden-sm hidden-xs ").next().removeClass("col-xs-9 col-md-10").addClass("col-lg-10");
|
||||
$(".hidden-nojs, .in-nojs").removeClass("hidden-nojs in-nojs");
|
||||
</script>
|
||||
</body>
|
||||
{% endfilter %}
|
||||
</script>
|
||||
|
||||
{% endfilter %}
|
||||
{% include "debug.html" %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Reference in a new issue