Added debug_toolbar app to project.
[wolnelektury.git] / apps / debug_toolbar / templates / debug_toolbar / panels / sql_explain.html
1 <div class="title">SQL Explain</div>
2 <dl>
3     <dt>Query:</dt>
4     <dd style="white-space:pre-wrap;">{{ sql|escape|linebreaksbr }}</dd>
5     <dt>Parameters:</dt>
6     <dd>{{ params|join:", "|escape }}</dd>
7 </dl>
8 <table>
9     <thead>
10         <tr>
11             <th>ID</th>
12             <th>Select Type</th>
13             <th>Table</th>
14             <th>Type</th>
15             <th>Possible Keys</th>
16             <th>Key</th>
17             <th>Ken Length</th>
18             <th>Ref</th>
19             <th>Rows</th>
20             <th>Extra</th>
21         </tr>
22     </thead>
23     <tbody>
24         {% for row in explain %}
25             <tr class="{% cycle 'row1' 'row2' %}">
26                 <td>{{ row.0|escape }}</td>
27                 <td>{{ row.1|escape }}</td>
28                 <td>{{ row.2|escape }}</td>
29                 <td>{{ row.3|escape }}</td>
30                 <td>{{ row.4|escape }}</td>
31                 <td>{{ row.5|escape }}</td>
32                 <td>{{ row.6|escape }}</td>
33                 <td>{{ row.7|escape }}</td>
34                 <td>{{ row.8|escape }}</td>
35                 <td>{{ row.9|escape }}</td>
36             </tr>
37         {% endfor %}
38     </tbody>
39 </table>