<h3>SQL Queries</h3>
<table>
	<thead>
		<tr>
			<th>Time&nbsp;(ms)</th>
			<th>Action</th>
			<th>Query</th>
		</tr>
	</thead>
	<tbody>
		{% for query in queries %}
			<tr class="{% cycle 'row1' 'row2' %}">
				<td>{{ query.time|floatformat:"4" }}</td>
				<td>
				{% if query.params %}
					<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&time={{ query.time|floatformat:"4"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a>
				{% endif %}
				</td>
				<td class="syntax">{{ query.sql|safe }}</td>
			</tr>
		{% endfor %}
	</tbody>
</table>
