Add an achor to return at the good query running explain

This commit is contained in:
clombardot 2012-03-19 09:52:02 +01:00
parent f114112c99
commit 295f732279

View file

@ -74,6 +74,7 @@
{% for i, query in collector.queries %}
<tr>
<td>
<a name="propel-query-{{ i }}" ></a>
<code>{{ query.sql|format_sql }}</code>
{% if app.request.query.has('query') and app.request.query.get('query') == i %}
<div class="SQLExplain">
@ -89,7 +90,7 @@
Time: {{ query.time }} - Memory: {{ query.memory }} - Connection: {{ query.connection }}
{% if app.request.query.get('query', -1) != i %}
- <a href="{{ path('_profiler', {'panel': 'propel', 'token': token, 'connection': query.connection, 'query': i}) }}">Explain the query</a>
- <a href="{{ path('_profiler', {'panel': 'propel', 'token': token, 'connection': query.connection, 'query': i}) }}#propel-query-{{ i }}">Explain the query</a>
{% endif %}
</div>
</td>