Anpassungen für das Hosting bei Djangoeurope und damit verbundenen Versionen Django 1.8 und Python 2.7
This commit is contained in:
committed by
Christian Berg
parent
cb4b15b3c6
commit
37d3cb78c1
44
templates/debug_toolbar/panels/sql_profile.html
Normal file
44
templates/debug_toolbar/panels/sql_profile.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{% load i18n %}{% load static from staticfiles %}
|
||||
<div class="djDebugPanelTitle">
|
||||
<a class="djDebugClose djDebugBack" href=""></a>
|
||||
<h3>{% trans "SQL profiled" %}</h3>
|
||||
</div>
|
||||
<div class="djDebugPanelContent">
|
||||
<div class="djdt-scroll">
|
||||
{% if result %}
|
||||
<dl>
|
||||
<dt>{% trans "Executed SQL" %}</dt>
|
||||
<dd>{{ sql|safe }}</dd>
|
||||
<dt>{% trans "Time" %}</dt>
|
||||
<dd>{{ duration }} ms</dd>
|
||||
<dt>{% trans "Database" %}</dt>
|
||||
<dd>{{ alias }}</dd>
|
||||
</dl>
|
||||
<table class="djSqlProfile">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for h in headers %}
|
||||
<th>{{ h|upper }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in result %}
|
||||
<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
|
||||
{% for column in row %}
|
||||
<td>{{ column|escape }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<dl>
|
||||
<dt>{% trans "Error" %}</dt>
|
||||
<dd>{{ result_error }}</dd>
|
||||
</dl>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{% static 'debug_toolbar/js/toolbar.sql.js' %}"></script>
|
||||
Reference in New Issue
Block a user