aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/base.html37
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/cache.html20
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/headers.html6
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/logger.html12
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/request_vars.html38
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/settings_vars.html6
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/signals.html34
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql.html27
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_explain.html53
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_profile.html62
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/sql_select.html61
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/template_source.html17
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html21
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/timer.html6
-rw-r--r--debug_toolbar/templates/debug_toolbar/redirect.html7
15 files changed, 233 insertions, 174 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index 52b7a5b..f220b62 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -1,3 +1,5 @@
+{% load i18n %}
+{% spaceless %}
<script type="text/javascript" charset="utf-8">
// When jQuery is sourced, it's going to overwrite whatever might be in the
// '$' variable, so store a reference of it in a temporary variable...
@@ -16,36 +18,51 @@
@import url({{ BASE_URL }}/__debug__/m/toolbar.min.css);
</style>
<div id="djDebug">
- <div style="display: none;" id="djDebugToolbar">
+ <div style="display:none;" id="djDebugToolbar">
<ul id="djDebugPanelList">
{% if panels %}
- <li><a id="djHideToolBarButton" href="#" title="Hide Toolbar">&laquo; Hide</a></li>
+ <li><a id="djHideToolBarButton" href="#" title="Hide Toolbar">{% trans "Hide" %} &raquo;</a></li>
{% else %}
<li id="djDebugButton">DEBUG</li>
{% endif %}
{% for panel in panels %}
<li>
{% if panel.has_content %}
- <a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">{{ panel.title }}</a>
+ <a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">
{% else %}
- {{ panel.title }}
+ <div class="contentless">
+ {% endif %}
+ {{ panel.nav_title }}
+ {% with panel.nav_subtitle as subtitle %}
+ {% if subtitle %}<br><small>{{ subtitle }}</small>{% endif %}
+ {% endwith %}
+ {% if panel.has_content %}
+ </a>
+ {% else %}
+ </div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
- <div style="display: none;" id="djDebugToolbarHandle">
- <ul id="djDebugPanelList">
- <li><a title="Show Toolbar" id="djShowToolBarButton" href="#">&raquo;</a></li>
- </ul>
+ <div style="display:none;" id="djDebugToolbarHandle">
+ <a title="Show Toolbar" id="djShowToolBarButton" href="#">&laquo;</a>
</div>
{% for panel in panels %}
{% if panel.has_content %}
<div id="{{ panel.dom_id }}" class="panelContent">
- <a href="" class="close">Close</a>
- {{ panel.content|safe }}
+ <div class="djDebugPanelTitle">
+ <a href="" class="close">{% trans "Close" %}</a>
+ <h3>{{ panel.title|safe }}</h3>
+ </div>
+ <div class="djDebugPanelContent">
+ <div class="scroll">
+ {{ panel.content|safe }}
+ </div>
+ </div>
</div>
{% endif %}
{% endfor %}
<div id="djDebugWindow" class="panelContent"></div>
</div>
+{% endspaceless %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 3142783..5c5f13b 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -1,4 +1,4 @@
-<h3>Cache Usage</h3>
+{% load i18n %}
<table>
<colgroup>
<col width="12%"/>
@@ -11,13 +11,13 @@
<col width="12%"/>
</colgroup>
<tr>
- <th>Total Calls</th>
+ <th>{% trans "Total Calls" %}</th>
<td>{{ cache_calls }}</td>
- <th>Total Time</th>
+ <th>{% trans "Total Time" %}</th>
<td>{{ cache_time }}ms</td>
- <th>Hits</th>
+ <th>{% trans "Hits" %}</th>
<td>{{ cache.hits }}</td>
- <th>Misses</th>
+ <th>{% trans "Misses" %}</th>
<td>{{ cache.misses }}</td>
</tr>
<tr>
@@ -32,14 +32,14 @@
</tr>
</table>
{% if cache.calls %}
-<h3>Breakdown</h3>
+<h3>{% trans "Breakdown" %}</h3>
<table>
<thead>
<tr>
- <th>Time&nbsp;(ms)</th>
- <th>Type</th>
- <th>Parameters</th>
- <th>Function</th>
+ <th>{% trans "Time" %}&nbsp;(ms)</th>
+ <th>{% trans "Type" %}</th>
+ <th>{% trans "Parameters" %}</th>
+ <th>{% trans "Function" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index 005ffe6..f251056 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -1,9 +1,9 @@
-<h3>HTTP Headers</h3>
+{% load i18n %}
<table>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Key" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html
index 2117529..5e8b652 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/logger.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html
@@ -1,12 +1,12 @@
-<h3>Log Messages</h3>
+{% load i18n %}
{% if records %}
<table>
<thead>
<tr>
- <th>Level</th>
- <th>Time</th>
- <th>Message</th>
- <th>Location</th>
+ <th>{% trans "Level" %}</th>
+ <th>{% trans "Time" %}</th>
+ <th>{% trans "Message" %}</th>
+ <th>{% trans "Location" %}</th>
</tr>
</thead>
<tbody>
@@ -21,6 +21,6 @@
</tbody>
</table>
{% else %}
- <p>No messages logged.</p>
+ <p>{% trans "No messages logged" %}.</p>
{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
index b7d53ee..3fdbf74 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html
@@ -1,4 +1,5 @@
-<h3>COOKIES Variables</h3>
+{% load i18n %}
+<h4>COOKIES Variables</h4>
{% if cookies %}
<table>
<colgroup>
@@ -7,8 +8,8 @@
</colgroup>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Variable" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
@@ -21,9 +22,10 @@
</tbody>
</table>
{% else %}
- <p>None</p>
+ <p>{% trans "No COOKIE data" %}</p>
{% endif %}
-<h3>SESSION Variables</h3>
+
+<h4>SESSION Variables</h4>
{% if session %}
<table>
<colgroup>
@@ -32,8 +34,8 @@
</colgroup>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Variable" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
@@ -46,15 +48,16 @@
</tbody>
</table>
{% else %}
- <p>None</p>
+ <p>{% trans "No SESSION data" %}</p>
{% endif %}
-<h3>GET Variables</h3>
+
+<h4>GET Variables</h4>
{% if get %}
<table>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Variable" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
@@ -67,15 +70,16 @@
</tbody>
</table>
{% else %}
- <p>None</p>
+ <p>{% trans "No GET data" %}</p>
{% endif %}
-<h3>POST Variables</h3>
+
+<h4>POST Variables</h4>
{% if post %}
<table>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Variable" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
@@ -88,5 +92,5 @@
</tbody>
</table>
{% else %}
- <p>None</p>
-{% endif %}
+ <p>{% trans "No POST data" %}</p>
+{% endif %} \ No newline at end of file
diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
index 93f0b34..99c43b6 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html
@@ -1,9 +1,9 @@
-<h3>Settings from <code>{{ settings.SETTINGS_MODULE }}</code></h3>
+{% load i18n %}
<table>
<thead>
<tr>
- <th>Setting</th>
- <th>Value</th>
+ <th>{% trans "Setting" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html
index e9a189e..d6d681c 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/signals.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html
@@ -1,19 +1,19 @@
-<h3>Signals</h3>
+{% load i18n %}
<table>
- <thead>
- <tr>
- <th>Signal</th>
- <th>Providing Args</th>
- <th>Receivers</th>
- </tr>
- </thead>
- <tbody>
- {% for name, signal, receivers in signals %}
- <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
- <td>{{ name|escape }}</td>
- <td>{{ signal.providing_args|join:", " }}</td>
- <td>{{ receivers|join:", " }}</td>
- </tr>
- {% endfor %}
- </tbody>
+ <thead>
+ <tr>
+ <th>{% trans "Signal" %}</th>
+ <th>Providing Args</th>
+ <th>Receivers</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for name, signal, receivers in signals %}
+ <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
+ <td>{{ name|escape }}</td>
+ <td>{{ signal.providing_args|join:", " }}</td>
+ <td>{{ receivers|join:", " }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
</table>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html
index f05ea97..81188a9 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -1,9 +1,9 @@
-<h3>SQL Queries</h3>
+{% load i18n %}
<table>
<thead>
<tr>
- <th>Time&nbsp;(ms)</th>
- <th>Action</th>
+ <th>{% trans "Time" %}&nbsp;(ms)</th>
+ <th>{% trans "Action" %}</th>
<th>Stacktrace</th>
<th>Query</th>
</tr>
@@ -11,13 +11,13 @@
<tbody>
{% for query in queries %}
<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
- <td>{{ query.time|floatformat:"2" }}</td>
+ <td>{{ query.duration|floatformat:"2" }}</td>
<td>
{% if query.params %}
- <a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">SELECT</a>
- <a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a>
+ <a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">SELECT</a><br>
+ <a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">EXPLAIN</a><br>
{% if is_mysql %}
- <a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&time={{ query.time|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a>
+ <a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&params={{ query.params|urlencode }}&duration={{ query.duration|floatformat:"2"|urlencode }}&hash={{ query.hash }}">PROFILE</a><br>
{% endif %}
{% endif %}
</td>
@@ -27,9 +27,9 @@
<div class="djSQLHideStacktraceDiv" style="display:none;">
<table>
<tr>
- <th>Line</th>
- <th>Method</th>
- <th>File</th>
+ <th>{% trans "Line" %}</th>
+ <th>{% trans "Method" %}</th>
+ <th>{% trans "File" %}</th>
</tr>
{% for file, line, method in query.stacktrace %}
<tr>
@@ -42,7 +42,12 @@
</div>
{% endif %}
</td>
- <td class="syntax">{{ query.sql|safe }}</td>
+ <td class="syntax">
+ <div class="djDebugSqlWrap">
+ <div class="djDebugSql">{{ query.sql|safe }}</div>
+ <span class="djDebugLineChart{% if query.is_slow %} djDebugLineChartWarning{% endif %}" style="width:{{ query.width_ratio }}%; left:{{ query.start_offset }}%;"</span>
+ </div>
+ </td>
</tr>
{% endfor %}
</tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
index a163b25..57fa538 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
@@ -1,26 +1,31 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
-<h3>SQL Explained</h3>
-<dl>
- <dt>Executed SQL</dt>
- <dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
- <dd>{{ time }} 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>
+{% load i18n %}
+<div class="djDebugPanelTitle">
+ <a class="close back" href="">{% trans "Back" %}</a>
+ <h3>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>
- {% 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>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
index e46f41d..a3d3240 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
@@ -1,26 +1,38 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
-<h3>SQL Profiled</h3>
-<dl>
- <dt>Executed SQL</dt>
- <dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
- <dd>{{ time }} 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>
+{% load i18n %}
+<div class="djDebugPanelTitle">
+ <a class="close back" href="">{% trans "Back" %}</a>
+ <h3>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>
+ {% endfor %}
+ </tr>
{% endfor %}
- </tr>
- {% endfor %}
- </tbody>
-</table>
+ </tbody>
+ </table>
+ {% else %}
+ <dl>
+ <dt>{% trans 'Error' %}</dt>
+ <dd>{{ result_error }}</dd>
+ </dl>
+ {% endif %}
+</div>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
index 17e7d48..a240b07 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
@@ -1,30 +1,35 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
-<h3>SQL Selected</h3>
-<dl>
- <dt>Executed SQL</dt>
- <dd><pre>{{ sql|safe }}</pre></dd>
- <dt>Time</dt>
- <dd>{{ time }} 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>
+{% load i18n %}
+<div class="djDebugPanelTitle">
+ <a class="close back" href="">{% trans "Back" %}</a>
+ <h3>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>
- {% endfor %}
- </tbody>
-</table>
-{% else %}
- <p>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>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
index 572522b..7074f4f 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html
@@ -1,3 +1,14 @@
-<a class="back" href="">&laquo;&nbsp;Back</a>
-<h3>Template Source: <samp>{{ template_name }}</samp></h3>
-{{ source }}
+{% load i18n %}
+<div class="djDebugPanelTitle">
+ <a class="close back" href="">{% trans "Back" %}</a>
+ <h3>Template Source: <code>{{ template_name }}</code></h3>
+</div>
+<div class="djDebugPanelContent">
+ <div class="scroll">
+ {% if not source.pygmentized %}
+ <pre>{{ source }}</pre>
+ {% else %}
+ {{ source }}
+ {% endif %}
+ </div>
+</div>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index e54c951..6107876 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -1,4 +1,5 @@
-<h3>Template path{{ template_dirs|length|pluralize }}:</h3>
+{% load i18n %}
+<h4>Template path{{ template_dirs|length|pluralize }}</h4>
{% if template_dirs %}
<ol>
{% for template in template_dirs %}
@@ -8,30 +9,32 @@
{% else %}
<p>None</p>
{% endif %}
-<h3>Template{{ templates|length|pluralize }}</h3>
+
+<h4>{% trans "Template" %}{{ templates|length|pluralize }}</h4>
{% if templates %}
<dl>
{% for template in templates %}
- <dt><strong><a class="remoteCall" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
+ <dt><strong><a class="remoteCall toggleTemplate" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
{% if template.context %}
- <dd>
- <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div>
- <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div>
- </dd>
+ <dd>
+ <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> Toggle Context</a></div>
+ <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div>
+ </dd>
{% endif %}
{% endfor %}
</dl>
{% else %}
<p>None</p>
{% endif %}
-<h3>Context processor{{ context_processors|length|pluralize }}</h3>
+
+<h4>Context processor{{ context_processors|length|pluralize }}</h4>
{% if context_processors %}
<dl>
{% for key, value in context_processors.iteritems %}
<dt><strong>{{ key|escape }}</strong></dt>
<dd>
- <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div>
+ <div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> Toggle Context</a></div>
<div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ value|escape }}</pre></div>
</dd>
{% endfor %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html
index 831ff86..f267de1 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/timer.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html
@@ -1,4 +1,4 @@
-<h3>Resource Usage</h3>
+{% load i18n %}
<table>
<colgroup>
<col style="width:20%"/>
@@ -6,8 +6,8 @@
</colgroup>
<thead>
<tr>
- <th>Key</th>
- <th>Value</th>
+ <th>{% trans "Resource" %}</th>
+ <th>{% trans "Value" %}</th>
</tr>
</thead>
<tbody>
diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html
index 1f5c84b..068fe8c 100644
--- a/debug_toolbar/templates/debug_toolbar/redirect.html
+++ b/debug_toolbar/templates/debug_toolbar/redirect.html
@@ -1,3 +1,4 @@
+{% load i18n %}
<html>
<head>
</head>
@@ -5,11 +6,7 @@
<h1>HttpResponseRedirect</h1>
<p>Location: <a href="{{ redirect_to|urlencode }}">{{ redirect_to }}</a></p>
<p class="notice">
- The Django Debug Toolbar has intercepted a redirect to the above URL for
- debug viewing purposes. You can click the above link to continue with the
- redirect as normal. If you'd like to disable this feature, set the
- <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key
- <code>INTERCEPT_REDIRECTS</code> to <code>False</code>.
+ {% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal. If you'd like to disable this feature, set the <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key <code>INTERCEPT_REDIRECTS</code> to <code>False</code>." %}
</p>
</body>
</html>