From 5151e5ff87ab56352df8d6979c14542aa18b2538 Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 2 Jan 2009 23:19:45 -0800 Subject: working on translating the django toolbar into Spanish. Translating panel template: cache.html --- .../templates/debug_toolbar/panels/cache.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html index 3142783..7667740 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/cache.html +++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html @@ -1,3 +1,4 @@ +{% load i18n %}

Cache Usage

@@ -11,13 +12,13 @@ - + - + - + - + @@ -32,14 +33,14 @@
Total Calls{% trans "Total Calls" %} {{ cache_calls }}Total Time{% trans "Total Time" %} {{ cache_time }}msHits{% trans "Hits" %} {{ cache.hits }}Misses{% trans "Misses" %} {{ cache.misses }}
{% if cache.calls %} -

Breakdown

+

{% trans "Breakdown" %}

- - - - + + + + -- cgit v1.2.3 From 22fde8255f935dbadcd958ee04fc3f0a94a64704 Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 2 Jan 2009 23:26:02 -0800 Subject: finished adding "trans" to panel template headers.html --- debug_toolbar/templates/debug_toolbar/panels/headers.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 3ac7fd3..0a1578d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -1,9 +1,10 @@ +{% load i18n %}

HTTP Headers

Time (ms)TypeParametersFunction{% trans "Time (ms)" %}{% trans "Type" %}{% trans "Parameters" %}{% trans "Function" %}
- - + + -- cgit v1.2.3 From 74763c3eb7e8debdf502697dfa28b0122cc9a628 Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 2 Jan 2009 23:36:49 -0800 Subject: trans fue incorporado a logger.html --- debug_toolbar/templates/debug_toolbar/panels/headers.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/logger.html | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 0a1578d..00b28e2 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -4,7 +4,7 @@ - + diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html index c079065..112cc7d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/logger.html +++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html @@ -1,12 +1,13 @@ +{% load i18n %}

Log Messages

{% if records %}
KeyValue{% trans "Key" %}{% trans "Value" %}
{% trans "Key" %}{% trans "Value" %}{% trans Value %}
- - - - + + + + @@ -21,6 +22,6 @@
LevelTimeMessageLocation{% trans "Level" %}{% trans "Time" %}{% trans "Message" %}{% trans "Location" %}
{% else %} -

No messages logged.

+

{% trans "No messages logged" %}.

{% endif %} -- cgit v1.2.3 From 77c0f4d0b1bb7392b5893cc2fc055ec7605c4fed Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 2 Jan 2009 23:39:15 -0800 Subject: adding i18n to request_vars template --- debug_toolbar/templates/debug_toolbar/panels/request_vars.html | 1 + 1 file changed, 1 insertion(+) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index fe317ae..0885711 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,3 +1,4 @@ +{% load i18n %}

COOKIES Variables

{% if cookies %} -- cgit v1.2.3 From 5387dbaecb4cd339279dad1b970e15231b9b5deb Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 2 Jan 2009 23:44:30 -0800 Subject: added trans to request_vars.html --- .../templates/debug_toolbar/panels/headers.html | 2 +- .../debug_toolbar/panels/request_vars.html | 24 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 00b28e2..0a1578d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -4,7 +4,7 @@ - + diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index 0885711..751e1da 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -8,8 +8,8 @@ - - + + @@ -22,7 +22,7 @@
{% trans "Key" %}{% trans Value %}{% trans "Value" %}
KeyValue{% trans "Key" %}{% trans "Value" %}
{% else %} -

None

+

{% trans "None" %}

{% endif %}

SESSION Variables

{% if session %} @@ -33,8 +33,8 @@ - Key - Value + {% trans "Key" %} + {% trans "Value" %} @@ -47,15 +47,15 @@ {% else %} -

None

+

{% trans "None" %}

{% endif %}

GET Variables

{% if get %} - - + + @@ -68,15 +68,15 @@
KeyValue{% trans "Key" %}{% trans "Value" %}
{% else %} -

None

+

{% trans "None" %}

{% endif %}

POST Variables

{% if post %} - - + + @@ -89,5 +89,5 @@
KeyValue{% trans "Key" %}{% trans "Value" %}
{% else %} -

None

+

{% trans "None" %}

{% endif %} -- cgit v1.2.3 From 88fbcdcaaf9d8cced4d321ffed395b7937b9aa2a Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Sun, 4 Jan 2009 15:07:34 -0800 Subject: added "trans" to the templates to be translated --- debug_toolbar/templates/debug_toolbar/panels/settings_vars.html | 5 +++-- debug_toolbar/templates/debug_toolbar/panels/sql.html | 7 ++++--- debug_toolbar/templates/debug_toolbar/panels/sql_explain.html | 7 ++++--- debug_toolbar/templates/debug_toolbar/panels/sql_profile.html | 7 ++++--- debug_toolbar/templates/debug_toolbar/panels/sql_select.html | 9 +++++---- .../templates/debug_toolbar/panels/template_source.html | 3 ++- debug_toolbar/templates/debug_toolbar/panels/timer.html | 5 +++-- debug_toolbar/templates/debug_toolbar/redirect.html | 7 +++++-- 8 files changed, 30 insertions(+), 20 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html index 1d332bf..1e84edf 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html @@ -1,9 +1,10 @@ +{% load i18n %}

Settings from {{ settings.SETTINGS_MODULE }}

- - + + diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 7de2220..0dc82e6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -1,10 +1,11 @@ +{% load i18n %}

SQL Queries

SettingValue{% trans "Setting" %}{% trans "Value" %}
- - - + + + diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index dc306f0..cb3ca5e 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,9 +1,10 @@ -« Back +{% load i18n %} +« {% trans "Back" %}

SQL Explained

-
Executed SQL
+
{% trans "Executed SQL" %}
{{ sql|safe }}
-
Time
+
{% trans "Time" %}
{{ time }} ms
Time (ms)ActionQuery{% trans "Time (ms)" %}{% trans "Action" %}{% trans "Query" %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html index c1d04ce..c058b2b 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,9 +1,10 @@ -« Back +{% load i18n %} +« {% trans "Back" %}

SQL Profiled

-
Executed SQL
+
{% trans "Executed SQL" %}
{{ sql|safe }}
-
Time
+
{% trans "Time" %}
{{ time }} ms
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index 73109ef..c2ab7b6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,9 +1,10 @@ -« Back +{% load i18n %} +« {% trans "Back" %}

SQL Selected

-
Executed SQL
+
{% trans "Executed SQL" %}
{{ sql|safe }}
-
Time
+
{% trans "Time" %}
{{ time }} ms
{% if result %} @@ -26,5 +27,5 @@
{% else %} -

Empty set

+

{% trans "Empty set" %}

{% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 572522b..e716691 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -1,3 +1,4 @@ -« Back +{% load i18n %} +« {% trans "Back" %}

Template Source: {{ template_name }}

{{ source }} diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 1b077c6..2d409b0 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,3 +1,4 @@ +{% load i18n %}

Resource Usage

@@ -6,8 +7,8 @@ - - + + diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html index afdccc4..d0585ca 100644 --- a/debug_toolbar/templates/debug_toolbar/redirect.html +++ b/debug_toolbar/templates/debug_toolbar/redirect.html @@ -1,3 +1,4 @@ +{% load i18n %} @@ -5,9 +6,11 @@

HttpResponseRedirect

Location: {{ redirect_to }}

- The Django Debug Toolbar has intercepted a redirect to the above URL for + {% 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 + redirect as normal. If you'd like to disable this feature, set the" + %} DEBUG_TOOLBAR_CONFIG dictionary's key INTERCEPT_REDIRECTS to False.

-- cgit v1.2.3 From 2339b5e95a2ecf0cc64ccef8d50e669f5caff69a Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Sun, 4 Jan 2009 16:32:52 -0800 Subject: added "trans" to base and redirect templates --- debug_toolbar/templates/debug_toolbar/base.html | 3 ++- debug_toolbar/templates/debug_toolbar/redirect.html | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index a6c8aef..fca6256 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,3 +1,4 @@ +{% load i18n %} - + +
KeyValue{% trans "Key" %}{% trans "Value" %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 005ffe6..b14a50c 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -1,4 +1,3 @@ -

HTTP Headers

diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html index 2117529..e6ce945 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/logger.html +++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html @@ -1,4 +1,3 @@ -

Log Messages

{% if records %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index b7d53ee..a65d0a5 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,4 +1,4 @@ -

COOKIES Variables

+

COOKIES Variables

{% if cookies %}
@@ -23,7 +23,7 @@ {% else %}

None

{% endif %} -

SESSION Variables

+

SESSION Variables

{% if session %}
@@ -48,7 +48,7 @@ {% else %}

None

{% endif %} -

GET Variables

+

GET Variables

{% if get %}
@@ -69,7 +69,7 @@ {% else %}

None

{% endif %} -

POST Variables

+

POST Variables

{% if post %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html index 93f0b34..c53ee4d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html @@ -1,4 +1,3 @@ -

Settings from {{ settings.SETTINGS_MODULE }}

diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index e9a189e..7875700 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -1,4 +1,3 @@ -

Signals

diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index f05ea97..717d54d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -1,4 +1,3 @@ -

SQL Queries

diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 6c918b1..78519c9 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,4 +1,3 @@ -

Template path{{ template_dirs|length|pluralize }}:

{% if template_dirs %}
    {% for template in template_dirs %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 831ff86..39e9eb1 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,4 +1,3 @@ -

    Resource Usage

-- cgit v1.2.3 From e11bfdac25d48019377f64131b78f4462e9d005f Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Wed, 12 Aug 2009 15:18:47 +0300 Subject: oops, retitled templates panel --- debug_toolbar/templates/debug_toolbar/panels/templates.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 78519c9..01240f7 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,3 +1,4 @@ +

Template path{{ template_dirs|length|pluralize }}

{% if template_dirs %}
    {% for template in template_dirs %} @@ -7,7 +8,7 @@ {% else %}

    None

    {% endif %} -

    Template{{ templates|length|pluralize }}

    +

    Template{{ templates|length|pluralize }}

    {% if templates %}
    {% for template in templates %} @@ -22,7 +23,7 @@ {% else %}

    None

    {% endif %} -

    Context processor{{ context_processors|length|pluralize }}

    +

    Context processor{{ context_processors|length|pluralize }}

    {% if context_processors %}
    {% for key, value in context_processors.iteritems %} -- cgit v1.2.3 From f60a5e3b048728240bb4d85dd1fb5e2c9ea6fa2d Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Wed, 12 Aug 2009 17:04:54 +0300 Subject: panel width, content boxing, safe scrolling --- debug_toolbar/templates/debug_toolbar/base.html | 6 +- .../templates/debug_toolbar/panels/headers.html | 34 ++-- .../templates/debug_toolbar/panels/logger.html | 51 +++--- .../debug_toolbar/panels/request_vars.html | 187 +++++++++++---------- .../debug_toolbar/panels/settings_vars.html | 34 ++-- .../templates/debug_toolbar/panels/signals.html | 36 ++-- .../templates/debug_toolbar/panels/sql.html | 99 +++++------ .../debug_toolbar/panels/template_source.html | 12 +- .../templates/debug_toolbar/panels/templates.html | 62 ++++--- .../templates/debug_toolbar/panels/timer.html | 42 ++--- 10 files changed, 301 insertions(+), 262 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 5f4b7e7..a44d31e 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -54,8 +54,10 @@
    Close

    {{ panel.title|safe }}

    -
    - {{ panel.content|safe }} +
    +
    + {{ panel.content|safe }} +
    {% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index b14a50c..a6b6b59 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -1,16 +1,18 @@ -
- - - - - - - - {% for key, value in headers.iteritems %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|escape }}
+
+ + + + + + + + + {% for key, value in headers.iteritems %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html index e6ce945..2bfab05 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/logger.html +++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html @@ -1,25 +1,26 @@ -{% if records %} - - - - - - - - - - - {% for record in records %} - - - - - - - {% endfor %} - -
LevelTimeMessageLocation
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.message }}{{ record.file }}:{{ record.line }}
-{% else %} -

No messages logged.

-{% endif %} - +
+ {% if records %} + + + + + + + + + + + {% for record in records %} + + + + + + + {% endfor %} + +
LevelTimeMessageLocation
{{ record.level }}{{ record.time|date:"h:i:s m/d/Y" }}{{ record.message }}{{ record.file }}:{{ record.line }}
+ {% else %} +

No messages logged.

+ {% endif %} +
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index a65d0a5..d8c81ba 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,92 +1,103 @@

COOKIES Variables

-{% if cookies %} - - - - - - - - - - - - - {% for key, value in cookies %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|escape }}
-{% else %} -

None

-{% endif %} +
+ {% if cookies %} + + + + + + + + + + + + + {% for key, value in cookies %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+ {% else %} +

None

+ {% endif %} +
+

SESSION Variables

-{% if session %} - - - - - - - - - - - - - {% for key, value in session %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|escape }}
-{% else %} -

None

-{% endif %} +
+ {% if session %} + + + + + + + + + + + + + {% for key, value in session %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+ {% else %} +

None

+ {% endif %} +
+

GET Variables

-{% if get %} - - - - - - - - - {% for key, value in get %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
-{% else %} -

None

-{% endif %} +
+ {% if get %} + + + + + + + + + {% for key, value in get %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
+ {% else %} +

None

+ {% endif %} +
+

POST Variables

-{% if post %} - - - - - - - - - {% for key, value in post %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
-{% else %} -

None

-{% endif %} +
+ {% if post %} + + + + + + + + + {% for key, value in post %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|join:", "|escape }}
+ {% else %} +

None

+ {% 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 c53ee4d..8c65700 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html @@ -1,16 +1,18 @@ - - - - - - - - - {% for var in settings.items|dictsort:"0" %} - - - - - {% endfor %} - -
SettingValue
{{ var.0 }}{{ var.1|pprint }}
+
+ + + + + + + + + {% for var in settings.items|dictsort:"0" %} + + + + + {% endfor %} + +
SettingValue
{{ var.0 }}{{ var.1|pprint }}
+
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index 7875700..c7a7733 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -1,18 +1,20 @@ - - - - - - - - - - {% for name, signal, receivers in signals %} - - - - +
+
SignalProviding ArgsReceivers
{{ name|escape }}{{ signal.providing_args|join:", " }}{{ receivers|join:", " }}
+ + + + + - {% endfor %} - -
SignalProviding ArgsReceivers
+ + + {% for name, signal, receivers in signals %} + + {{ name|escape }} + {{ signal.providing_args|join:", " }} + {{ receivers|join:", " }} + + {% endfor %} + + + \ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 717d54d..bb805e6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -1,48 +1,51 @@ - - - - - - - - - - - {% for query in queries %} - - - - - - - {% endfor %} - -
Time (ms)ActionStacktraceQuery
{{ query.time|floatformat:"2" }} - {% if query.params %} - SELECT - EXPLAIN - {% if is_mysql %} - PROFILE - {% endif %} - {% endif %} - - {% if query.stacktrace %} - - - {% endif %} - {{ query.sql|safe }}
+
+ + + + + + + + + + + {% for query in queries %} + + + + + + + {% endfor %} + +
Time (ms)ActionStacktraceQuery
{{ query.time|floatformat:"2" }} + {% if query.params %} + SELECT + EXPLAIN + {% if is_mysql %} + PROFILE + {% endif %} + {% endif %} + + {% if query.stacktrace %} + + + {% endif %} + {{ query.sql|safe }}
+
+ diff --git a/debug_toolbar/templates/debug_toolbar/panels/template_source.html b/debug_toolbar/templates/debug_toolbar/panels/template_source.html index 572522b..2094a3f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/template_source.html +++ b/debug_toolbar/templates/debug_toolbar/panels/template_source.html @@ -1,3 +1,9 @@ -« Back -

Template Source: {{ template_name }}

-{{ source }} +Back +

Template Source: {{ template_name }}

+
+
+
+ {{ source }} +
+
+
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 01240f7..622321f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,4 +1,5 @@

Template path{{ template_dirs|length|pluralize }}

+
{% if template_dirs %}
    {% for template in template_dirs %} @@ -8,32 +9,39 @@ {% else %}

    None

    {% endif %} +
+

Template{{ templates|length|pluralize }}

-{% if templates %} -
-{% for template in templates %} -
{{ template.template.name|addslashes }}
-
{{ template.template.origin_name|addslashes }}
-
- - -
-{% endfor %} -
-{% else %} -

None

-{% endif %} +
+ {% if templates %} +
+ {% for template in templates %} +
{{ template.template.name|addslashes }}
+
{{ template.template.origin_name|addslashes }}
+
+ + +
+ {% endfor %} +
+ {% else %} +

None

+ {% endif %} +
+

Context processor{{ context_processors|length|pluralize }}

-{% if context_processors %} -
-{% for key, value in context_processors.iteritems %} -
{{ key|escape }}
-
- - -
-{% endfor %} -
-{% else %} -

None

-{% endif %} +
+ {% if context_processors %} +
+ {% for key, value in context_processors.iteritems %} +
{{ key|escape }}
+
+ + +
+ {% endfor %} +
+ {% else %} +

None

+ {% endif %} +
\ No newline at end of file diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 39e9eb1..ba801b2 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,20 +1,22 @@ - - - - - - - - - - - - - {% for key, value in rows %} - - - - - {% endfor %} - -
KeyValue
{{ key|escape }}{{ value|escape }}
+
+ + + + + + + + + + + + + {% for key, value in rows %} + + + + + {% endfor %} + +
KeyValue
{{ key|escape }}{{ value|escape }}
+
-- cgit v1.2.3 From e0a81fd78aa2a6e5096a8b207484fa19cc5c034f Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 21 Aug 2009 13:30:24 -0700 Subject: testing some changes --- debug_toolbar/templates/debug_toolbar/base.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/signals.html | 2 +- debug_toolbar/templates/debug_toolbar/panels/sql.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 66d126e..748001d 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -20,7 +20,7 @@ @@ -61,7 +61,7 @@ - + @@ -75,7 +75,7 @@
{% trans "Key" %}{% trans "Variable" %} {% trans "Value" %}
{% else %} -

{% trans "None" %}

+

{% trans "No GET data" %}

{% endif %} @@ -85,7 +85,7 @@ - + @@ -99,6 +99,6 @@
{% trans "Key" %}{% trans "Variable" %} {% trans "Value" %}
{% else %} -

{% trans "None" %}

+

{% trans "No POST data" %}

{% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index 3936dba..fccf7ff 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -1,3 +1,4 @@ +{% load i18n %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 4c100e9..4bb7c9a 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -28,7 +28,7 @@
- + -- cgit v1.2.3 From 8fa547a2a34086455b4af9e327906b6f96b12b24 Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 21 Aug 2009 15:11:13 -0700 Subject: added i18n support (Spanish) for timer.html --- debug_toolbar/templates/debug_toolbar/panels/timer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 70ba61e..d089276 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -7,7 +7,7 @@ - + -- cgit v1.2.3 From b5087075c1354b1512bb25a38e7f7c0afd1067d0 Mon Sep 17 00:00:00 2001 From: Percy Perez-Pinedo Date: Fri, 21 Aug 2009 15:36:00 -0700 Subject: spanish version of the debug toolbar templates is mostly done' --- debug_toolbar/templates/debug_toolbar/panels/sql.html | 6 +++--- debug_toolbar/templates/debug_toolbar/panels/templates.html | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 4bb7c9a..cac2e47 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -3,7 +3,7 @@
Line{% trans "Line" %} Method File
{% trans "Key" %}{% trans "Resource" %} {% trans "Value" %}
- + @@ -29,8 +29,8 @@
Time (ms){% trans "Time" %} (ms) {% trans "Action" %} Stacktrace Query
- - + + {% for file, line, method in query.stacktrace %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 622321f..194e477 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,3 +1,4 @@ +{% load i18n %}

Template path{{ template_dirs|length|pluralize }}

{% if template_dirs %} @@ -11,7 +12,7 @@ {% endif %}
-

Template{{ templates|length|pluralize }}

+

{% trans "Template" %}{{ templates|length|pluralize }}

{% if templates %}
-- cgit v1.2.3 From ecd7f2abe62996b19720e9ade61b45eafac590e8 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 24 Aug 2009 11:24:38 -0700 Subject: Make panel content stylings look like Django's debug template. --- debug_toolbar/templates/debug_toolbar/base.html | 14 ++--- .../debug_toolbar/panels/sql_explain.html | 52 ++++++++++--------- .../debug_toolbar/panels/sql_profile.html | 52 ++++++++++--------- .../templates/debug_toolbar/panels/sql_select.html | 60 ++++++++++++---------- 4 files changed, 95 insertions(+), 83 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index 401677a..d0f4562 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -50,13 +50,13 @@ {% for panel in panels %} {% if panel.has_content %}
- Close -

{{ panel.title|safe }}

-
-
- {{ panel.content|safe }} -
-
+
+ Close +

{{ panel.title|safe }}

+
+
+ {{ panel.content|safe }} +
{% endif %} {% endfor %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html index a163b25..d26a8a3 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html @@ -1,26 +1,30 @@ -« Back -

SQL Explained

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
-
{% trans "Line" %}MethodFile{% trans "Method" %}{% trans "File" %}
- - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Explained

+
+
+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} ms
+
+
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
+ + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + +
diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html index e46f41d..c5410f8 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html @@ -1,26 +1,30 @@ -« Back -

SQL Profiled

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
- - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Profiled

+
+
+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} ms
+
+
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
+ + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + + diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html index 17e7d48..4fc928d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -1,30 +1,34 @@ -« Back -

SQL Selected

-
-
Executed SQL
-
{{ sql|safe }}
-
Time
-
{{ time }} ms
-
-{% if result %} - - - - {% for h in headers %} - - {% endfor %} - - - - {% for row in result %} - - {% for column in row %} - +
+ « Back +

SQL Selected

+
+
+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} ms
+
+ {% if result %} +
{{ h|upper }}
{{ column|escape }}
+ + + {% for h in headers %} + {% endfor %} - {% endfor %} - -
{{ h|upper }}
-{% else %} -

Empty set

-{% endif %} + + + {% for row in result %} + + {% for column in row %} + {{ column|escape }} + {% endfor %} + + {% endfor %} + + + {% else %} +

Empty set

+ {% endif %} + -- cgit v1.2.3 From 2fcfa87b1addcb903185af943d6f7a20c0cfa6bf Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 24 Aug 2009 16:16:10 -0700 Subject: Merge locale work by Percy. --- debug_toolbar/templates/debug_toolbar/base.html | 5 ++-- .../templates/debug_toolbar/panels/cache.html | 19 +++++++-------- .../templates/debug_toolbar/panels/headers.html | 5 ++-- .../templates/debug_toolbar/panels/logger.html | 13 ++++++----- .../debug_toolbar/panels/request_vars.html | 27 +++++++++++----------- .../debug_toolbar/panels/settings_vars.html | 5 ++-- .../templates/debug_toolbar/panels/signals.html | 3 ++- .../templates/debug_toolbar/panels/sql.html | 14 +++++------ .../debug_toolbar/panels/sql_explain.html | 7 +++--- .../debug_toolbar/panels/sql_profile.html | 7 +++--- .../templates/debug_toolbar/panels/sql_select.html | 9 ++++---- .../debug_toolbar/panels/template_source.html | 5 ++-- .../templates/debug_toolbar/panels/templates.html | 3 ++- .../templates/debug_toolbar/panels/timer.html | 7 +++--- .../templates/debug_toolbar/redirect.html | 5 ++-- 15 files changed, 74 insertions(+), 60 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index d0f4562..b80daef 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -1,3 +1,4 @@ +{% load i18n %} - - +