Skip to content

Commit bf34218

Browse files
committed
Summary: Include SQL debug thing again in base template
- Legacy-Id: 8963
1 parent c365f99 commit bf34218

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

ietf/templates/debug.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
{% if debug %}
33
{% load ietf_filters %}
44
<div id="debug" style="clear: left;">
5-
<h2>Queries</h2>
5+
<h3>SQL Queries</h3>
66
<p>
7-
{{ sql_queries|length }} Queries ({{ sql_queries|timesum }}s)
7+
{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s)
88
{% if sql_queries|length != 0 %}
9-
(<span style="cursor: pointer;" onclick="document.getElementById('debugQueryTable').style.display='';">Show</span>)
9+
<a class="btn btn-default btn-sm" onclick="document.getElementById('debug-query-table').style.display='';">Show</a>
1010
{% endif %}
1111
</p>
12-
<table id="debugQueryTable" style="display: none;">
12+
<table class="table table-condensed table-striped" id="debug-query-table" style="display: none;">
1313
<col width="1"></col>
1414
<col></col>
1515
<col width="1"></col>
@@ -22,7 +22,7 @@ <h2>Queries</h2>
2222
</thead>
2323
<tbody>
2424
{% for query in sql_queries %}
25-
<tr class="{% cycle odd,even %}">
25+
<tr>
2626
<td>{{ forloop.counter }}</td>
2727
<td>{{ query.sql|expand_comma|escape }}</td>
2828
<td>{{ query.time }}</td>

ietf/templates/ietf.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<link rel="apple-touch-icon-precomposed" href="/facelift/images/ietficon.png">
2525
</head>
2626

27-
{% filter amp|smartypants %}
28-
<body {% block bodyAttrs %}{%endblock%}>
29-
<div class="modal fade" id="navmodal" tabindex="-1" role="dialog" {#aria-labelledby="navmodallabel"#} aria-hidden="true">
27+
<body {% block bodyAttrs %}{%endblock%}>
28+
{% filter amp|smartypants %}
29+
<div class="modal fade" id="navmodal" tabindex="-1" role="dialog" {#aria-labelledby="navmodallabel"#} aria-hidden="true">
3030
<div class="modal-dialog">
3131
<div class="modal-content">
3232
{% comment %}
@@ -179,8 +179,10 @@ <h4 class="modal-title" id="navmodallabel">Area &amp; WG navigation</h4>
179179
//]]>
180180
$(".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");
181181
$(".hidden-nojs, .in-nojs").removeClass("hidden-nojs in-nojs");
182-
</script>
183-
</body>
184-
{% endfilter %}
182+
</script>
183+
184+
{% endfilter %}
185+
{% include "debug.html" %}
186+
</body>
185187
</html>
186188

0 commit comments

Comments
 (0)