aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorRob Hudson2009-09-11 15:47:18 -0700
committerRob Hudson2009-09-11 15:47:18 -0700
commitc4abcc6cfffe060fe7a188d01a972933afef7615 (patch)
tree4dd0b35cdad915b75eb1fb23e0ce971ff1458a56 /debug_toolbar/templates
parent5aee4dfeb4aed0e34fbb8b2197b9ea7cc8cb062b (diff)
downloaddjango-debug-toolbar-c4abcc6cfffe060fe7a188d01a972933afef7615.tar.bz2
Wrapped subpanel content with div.scroll and fixed a few minor CSS problems.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_explain.html48
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_profile.html62
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_select.html56
3 files changed, 86 insertions, 80 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index 57fa538..586bc25 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -1,31 +1,33 @@
{% load i18n %}
<div class="djDebugPanelTitle">
<a class="close back" href="">{% trans "Back" %}</a>
- <h3>SQL Explained</h3>
+ <h3>{% trans "SQL Explained" %}</h3>
</div>
<div class="djDebugPanelContent">
- <dl>
- <dt>{% trans "Executed SQL" %}</dt>
- <dd>{{ sql|safe }}</dd>
- <dt>{% trans "Time" %}</dt>
- <dd>{{ duration }} ms</dd>
- </dl>
- <table>
- <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>
+ <div class="scroll">
+ <dl>
+ <dt>{% trans "Executed SQL" %}</dt>
+ <dd>{{ sql|safe }}</dd>
+ <dt>{% trans "Time" %}</dt>
+ <dd>{{ duration }} ms</dd>
+ </dl>
+ <table>
+ <thead>
+ <tr>
+ {% for h in headers %}
+ <th>{{ h|upper }}</th>
{% endfor %}
</tr>
- {% endfor %}
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ {% for row in result %}
+ <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
+ {% for column in row %}
+ <td>{{ column|escape }}</td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
</div>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index a3d3240..f551a6f 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -1,38 +1,40 @@
{% load i18n %}
<div class="djDebugPanelTitle">
<a class="close back" href="">{% trans "Back" %}</a>
- <h3>SQL Profiled</h3>
+ <h3>{% trans "SQL Profiled" %}</h3>
</div>
<div class="djDebugPanelContent">
- {% if result %}
- <dl>
- <dt>{% trans "Executed SQL" %}</dt>
- <dd>{{ sql|safe }}</dd>
- <dt>{% trans "Time" %}</dt>
- <dd>{{ duration }} ms</dd>
- </dl>
- <table>
- <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>
+ <div class="scroll">
+ {% if result %}
+ <dl>
+ <dt>{% trans "Executed SQL" %}</dt>
+ <dd>{{ sql|safe }}</dd>
+ <dt>{% trans "Time" %}</dt>
+ <dd>{{ duration }} ms</dd>
+ </dl>
+ <table>
+ <thead>
+ <tr>
+ {% for h in headers %}
+ <th>{{ h|upper }}</th>
{% endfor %}
</tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <dl>
- <dt>{% trans 'Error' %}</dt>
- <dd>{{ result_error }}</dd>
- </dl>
- {% endif %}
+ </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>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index a240b07..fd839eb 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -1,35 +1,37 @@
{% load i18n %}
<div class="djDebugPanelTitle">
<a class="close back" href="">{% trans "Back" %}</a>
- <h3>SQL Selected</h3>
+ <h3>{% trans "SQL Selected" %}</h3>
</div>
<div class="djDebugPanelContent">
- <dl>
- <dt>{% trans "Executed SQL" %}</dt>
- <dd>{{ sql|safe }}</dd>
- <dt>{% trans "Time" %}</dt>
- <dd>{{ duration }} ms</dd>
- </dl>
- {% if result %}
- <table>
- <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>
+ <div class="scroll">
+ <dl>
+ <dt>{% trans "Executed SQL" %}</dt>
+ <dd>{{ sql|safe }}</dd>
+ <dt>{% trans "Time" %}</dt>
+ <dd>{{ duration }} ms</dd>
+ </dl>
+ {% if result %}
+ <table>
+ <thead>
+ <tr>
+ {% for h in headers %}
+ <th>{{ h|upper }}</th>
{% endfor %}
</tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <p>{% trans "Empty set" %}</p>
- {% endif %}
+ </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 %}
+ <p>{% trans "Empty set" %}</p>
+ {% endif %}
+ </div>
</div>