sql_explain.html 754 B

123456789101112131415161718192021222324252627282930313233
  1. {% load i18n %}
  2. <div class="djDebugPanelTitle">
  3. <a class="djDebugClose djDebugBack" href="">{% trans "Back" %}</a>
  4. <h3>{% trans "SQL Explained" %}</h3>
  5. </div>
  6. <div class="djDebugPanelContent">
  7. <div class="scroll">
  8. <dl>
  9. <dt>{% trans "Executed SQL" %}</dt>
  10. <dd>{{ sql|safe }}</dd>
  11. <dt>{% trans "Time" %}</dt>
  12. <dd>{{ duration }} ms</dd>
  13. </dl>
  14. <table class="djSqlExplain">
  15. <thead>
  16. <tr>
  17. {% for h in headers %}
  18. <th>{{ h|upper }}</th>
  19. {% endfor %}
  20. </tr>
  21. </thead>
  22. <tbody>
  23. {% for row in result %}
  24. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  25. {% for column in row %}
  26. <td>{{ column|escape }}</td>
  27. {% endfor %}
  28. </tr>
  29. {% endfor %}
  30. </tbody>
  31. </table>
  32. </div>
  33. </div>