{% endfor %}
--
cgit v1.2.3
From 2e5e136e00f964c10247c78da88e2b11e1f5a7dd Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 04:39:59 +0300
Subject: renamed title/subtitle -> nav_title/nav_subtitle
---
debug_toolbar/panels/__init__.py | 4 ++--
debug_toolbar/panels/cache.py | 2 +-
debug_toolbar/panels/headers.py | 2 +-
debug_toolbar/panels/logger.py | 4 ++--
debug_toolbar/panels/request_vars.py | 2 +-
debug_toolbar/panels/settings_vars.py | 2 +-
debug_toolbar/panels/signals.py | 2 +-
debug_toolbar/panels/sql.py | 4 ++--
debug_toolbar/panels/template.py | 2 +-
debug_toolbar/panels/timer.py | 4 ++--
debug_toolbar/panels/version.py | 4 ++--
debug_toolbar/templates/debug_toolbar/base.html | 4 ++--
12 files changed, 18 insertions(+), 18 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py
index 459e550..879755a 100644
--- a/debug_toolbar/panels/__init__.py
+++ b/debug_toolbar/panels/__init__.py
@@ -14,11 +14,11 @@ class DebugPanel(object):
def dom_id(self):
return 'djDebug%sPanel' % (self.name.replace(' ', ''))
- def title(self):
+ def nav_title(self):
"""Title showing in toolbar"""
raise NotImplementedError
- def subtitle(self):
+ def nav_subtitle(self):
"""Subtitle showing until title in toolbar"""
return ''
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index 613d4d9..f1a921b 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -87,7 +87,7 @@ class CacheDebugPanel(DebugPanel):
self.cache = CacheStatTracker(cache.cache)
cache.cache = self.cache
- def title(self):
+ def nav_title(self):
return 'Cache: %.2fms' % self.cache.total_time
def url(self):
diff --git a/debug_toolbar/panels/headers.py b/debug_toolbar/panels/headers.py
index 213198a..5462dec 100644
--- a/debug_toolbar/panels/headers.py
+++ b/debug_toolbar/panels/headers.py
@@ -31,7 +31,7 @@ class HeaderDebugPanel(DebugPanel):
'SERVER_SOFTWARE',
)
- def title(self):
+ def nav_title(self):
return 'HTTP Headers'
def url(self):
diff --git a/debug_toolbar/panels/logger.py b/debug_toolbar/panels/logger.py
index 91688a8..6e46d9d 100644
--- a/debug_toolbar/panels/logger.py
+++ b/debug_toolbar/panels/logger.py
@@ -51,10 +51,10 @@ class LoggingPanel(DebugPanel):
handler.clear_records()
return records
- def title(self):
+ def nav_title(self):
return "Logging"
- def subtitle(self):
+ def nav_subtitle(self):
return "%s message%s" % (len(handler.get_records()), (len(handler.get_records()) == 1) and '' or 's')
def url(self):
diff --git a/debug_toolbar/panels/request_vars.py b/debug_toolbar/panels/request_vars.py
index 88a7204..023f690 100644
--- a/debug_toolbar/panels/request_vars.py
+++ b/debug_toolbar/panels/request_vars.py
@@ -8,7 +8,7 @@ class RequestVarsDebugPanel(DebugPanel):
name = 'RequestVars'
has_content = True
- def title(self):
+ def nav_title(self):
return 'Request Vars'
def url(self):
diff --git a/debug_toolbar/panels/settings_vars.py b/debug_toolbar/panels/settings_vars.py
index e090718..93cae32 100644
--- a/debug_toolbar/panels/settings_vars.py
+++ b/debug_toolbar/panels/settings_vars.py
@@ -10,7 +10,7 @@ class SettingsVarsDebugPanel(DebugPanel):
name = 'SettingsVars'
has_content = True
- def title(self):
+ def nav_title(self):
return 'Settings'
def url(self):
diff --git a/debug_toolbar/panels/signals.py b/debug_toolbar/panels/signals.py
index 7fe382e..1aca1da 100644
--- a/debug_toolbar/panels/signals.py
+++ b/debug_toolbar/panels/signals.py
@@ -34,7 +34,7 @@ class SignalDebugPanel(DebugPanel):
'post_syncdb': post_syncdb,
}
- def title(self):
+ def nav_title(self):
return "Signals"
def url(self):
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index d1d1ead..2e70c77 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -73,10 +73,10 @@ class SQLDebugPanel(DebugPanel):
self._offset = len(connection.queries)
self._sql_time = 0
- def title(self):
+ def nav_title(self):
return 'SQL'
- def subtitle(self):
+ def nav_subtitle(self):
self._sql_time = sum(map(lambda q: float(q['time']), connection.queries))
num_queries = len(connection.queries) - self._offset
return "%d %s in %.2fms" % (
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index b548287..98b0769 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -41,7 +41,7 @@ class TemplateDebugPanel(DebugPanel):
def _storeTemplateInfo(self, sender, **kwargs):
self.templates.append(kwargs)
- def title(self):
+ def nav_title(self):
return 'Templates'
def url(self):
diff --git a/debug_toolbar/panels/timer.py b/debug_toolbar/panels/timer.py
index 1491272..554d696 100644
--- a/debug_toolbar/panels/timer.py
+++ b/debug_toolbar/panels/timer.py
@@ -31,10 +31,10 @@ class TimerDebugPanel(DebugPanel):
if self.has_resource:
self._end_rusage = resource.getrusage(resource.RUSAGE_SELF)
- def title(self):
+ def nav_title(self):
return 'Time'
- def subtitle(self):
+ def nav_subtitle(self):
if self.has_resource:
utime = self._end_rusage.ru_utime - self._start_rusage.ru_utime
stime = self._end_rusage.ru_stime - self._start_rusage.ru_stime
diff --git a/debug_toolbar/panels/version.py b/debug_toolbar/panels/version.py
index da05bf1..083b9cf 100644
--- a/debug_toolbar/panels/version.py
+++ b/debug_toolbar/panels/version.py
@@ -7,10 +7,10 @@ class VersionDebugPanel(DebugPanel):
"""
name = 'Version'
- def title(self):
+ def nav_title(self):
return 'Django Version'
- def subtitle(self):
+ def nav_subtitle(self):
return django.get_version()
def url(self):
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index f6a508d..a45e9b6 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -31,8 +31,8 @@
{% else %}
{% endif %}
- {{ panel.title }}
- {% with panel.subtitle as subtitle %}
+ {{ panel.nav_title }}
+ {% with panel.nav_subtitle as subtitle %}
{% if subtitle %}
{{ subtitle }}{% endif %}
{% endwith %}
{% if panel.has_content %}
--
cgit v1.2.3
From 5015057cfe3448028ff79ca36a96f1baa4224226 Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 05:09:04 +0300
Subject: added in-panel title
---
debug_toolbar/panels/__init__.py | 4 ++++
debug_toolbar/panels/cache.py | 3 +++
debug_toolbar/panels/headers.py | 3 +++
debug_toolbar/panels/logger.py | 3 +++
debug_toolbar/panels/request_vars.py | 5 ++++-
debug_toolbar/panels/settings_vars.py | 3 +++
debug_toolbar/panels/signals.py | 3 +++
debug_toolbar/panels/sql.py | 3 +++
debug_toolbar/panels/template.py | 3 +++
debug_toolbar/panels/timer.py | 3 +++
debug_toolbar/templates/debug_toolbar/base.html | 1 +
11 files changed, 33 insertions(+), 1 deletion(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py
index 879755a..cf65aa8 100644
--- a/debug_toolbar/panels/__init__.py
+++ b/debug_toolbar/panels/__init__.py
@@ -22,6 +22,10 @@ class DebugPanel(object):
"""Subtitle showing until title in toolbar"""
return ''
+ def title(self):
+ """Title showing in panel"""
+ raise NotImplementedError
+
def url(self):
raise NotImplementedError
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index f1a921b..a05d3cc 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -90,6 +90,9 @@ class CacheDebugPanel(DebugPanel):
def nav_title(self):
return 'Cache: %.2fms' % self.cache.total_time
+ def title(self):
+ return 'Cache Usage'
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/headers.py b/debug_toolbar/panels/headers.py
index 5462dec..06858ef 100644
--- a/debug_toolbar/panels/headers.py
+++ b/debug_toolbar/panels/headers.py
@@ -34,6 +34,9 @@ class HeaderDebugPanel(DebugPanel):
def nav_title(self):
return 'HTTP Headers'
+ def title(self):
+ return 'HTTP Headers'
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/logger.py b/debug_toolbar/panels/logger.py
index 6e46d9d..7ba1686 100644
--- a/debug_toolbar/panels/logger.py
+++ b/debug_toolbar/panels/logger.py
@@ -57,6 +57,9 @@ class LoggingPanel(DebugPanel):
def nav_subtitle(self):
return "%s message%s" % (len(handler.get_records()), (len(handler.get_records()) == 1) and '' or 's')
+ def title(self):
+ return 'Log Messages'
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/request_vars.py b/debug_toolbar/panels/request_vars.py
index 023f690..d0a8c19 100644
--- a/debug_toolbar/panels/request_vars.py
+++ b/debug_toolbar/panels/request_vars.py
@@ -10,7 +10,10 @@ class RequestVarsDebugPanel(DebugPanel):
def nav_title(self):
return 'Request Vars'
-
+
+ def title(self):
+ return 'Request Vars'
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/settings_vars.py b/debug_toolbar/panels/settings_vars.py
index 93cae32..0b7c315 100644
--- a/debug_toolbar/panels/settings_vars.py
+++ b/debug_toolbar/panels/settings_vars.py
@@ -13,6 +13,9 @@ class SettingsVarsDebugPanel(DebugPanel):
def nav_title(self):
return 'Settings'
+ def title(self):
+ return 'Settings from
%s' % settings.SETTINGS_MODULE
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/signals.py b/debug_toolbar/panels/signals.py
index 1aca1da..a922694 100644
--- a/debug_toolbar/panels/signals.py
+++ b/debug_toolbar/panels/signals.py
@@ -37,6 +37,9 @@ class SignalDebugPanel(DebugPanel):
def nav_title(self):
return "Signals"
+ def title(self):
+ return "Signals"
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index 2e70c77..f12939e 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -84,6 +84,9 @@ class SQLDebugPanel(DebugPanel):
(num_queries == 1) and 'query' or 'queries',
self._sql_time
)
+
+ def title(self):
+ return 'SQL Queries'
def url(self):
return ''
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 98b0769..985a9d8 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -44,6 +44,9 @@ class TemplateDebugPanel(DebugPanel):
def nav_title(self):
return 'Templates'
+ def title(self):
+ return 'Template path{{ template_dirs|length|pluralize }}:'
+
def url(self):
return ''
diff --git a/debug_toolbar/panels/timer.py b/debug_toolbar/panels/timer.py
index 554d696..4ff68db 100644
--- a/debug_toolbar/panels/timer.py
+++ b/debug_toolbar/panels/timer.py
@@ -42,6 +42,9 @@ class TimerDebugPanel(DebugPanel):
else:
return 'TOTAL: %0.2fms' % (self.total_time)
+ def title(self):
+ return 'Resource Usage'
+
def url(self):
return ''
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index a45e9b6..ab591dd 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -52,6 +52,7 @@
{% for panel in panels %}
{% if panel.has_content %}
+
{{ panel.title|safe }}
Close
{{ panel.content|safe }}
--
cgit v1.2.3
From 28ec3f9aa3674284eb060e91760fbc6e98076f3a Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 06:36:36 +0300
Subject: Remove indicator if closed via panel close
---
debug_toolbar/media/debug_toolbar/toolbar.js | 1 +
1 file changed, 1 insertion(+)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.js b/debug_toolbar/media/debug_toolbar/toolbar.js
index cde67a6..355a66f 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.js
+++ b/debug_toolbar/media/debug_toolbar/toolbar.js
@@ -102,6 +102,7 @@ jQuery(function($j) {
$j(document).bind('close.djDebug', function() {
$j(document).unbind('keydown.djDebug');
$j('.panelContent').hide();
+ $j('#djDebugToolbar li').removeClass("active");
});
});
jQuery(function() {
--
cgit v1.2.3
From e38c45515ca458709b0a7e5bc75e3f640950dbb3 Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 06:37:43 +0300
Subject: Cleaned up the panels
---
debug_toolbar/media/debug_toolbar/close.png | Bin 0 -> 1130 bytes
debug_toolbar/media/debug_toolbar/panel_bg.png | Bin 0 -> 110 bytes
debug_toolbar/media/debug_toolbar/toolbar.css | 39 +++++++++++++++------
debug_toolbar/templates/debug_toolbar/base.html | 6 ++--
.../templates/debug_toolbar/panels/cache.html | 1 -
.../templates/debug_toolbar/panels/headers.html | 1 -
.../templates/debug_toolbar/panels/logger.html | 1 -
.../debug_toolbar/panels/request_vars.html | 8 ++---
.../debug_toolbar/panels/settings_vars.html | 1 -
.../templates/debug_toolbar/panels/signals.html | 1 -
.../templates/debug_toolbar/panels/sql.html | 1 -
.../templates/debug_toolbar/panels/templates.html | 1 -
.../templates/debug_toolbar/panels/timer.html | 1 -
13 files changed, 37 insertions(+), 24 deletions(-)
create mode 100644 debug_toolbar/media/debug_toolbar/close.png
create mode 100644 debug_toolbar/media/debug_toolbar/panel_bg.png
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/close.png b/debug_toolbar/media/debug_toolbar/close.png
new file mode 100644
index 0000000..c22e2e8
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/close.png differ
diff --git a/debug_toolbar/media/debug_toolbar/panel_bg.png b/debug_toolbar/media/debug_toolbar/panel_bg.png
new file mode 100644
index 0000000..73add17
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/panel_bg.png differ
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index b6e3f5d..4211099 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -133,11 +133,11 @@
}
#djDebug .panelContent {
- background: #daf7ff;
+
display: none;
position: absolute;
margin: 0;
- padding: 10px;
+ padding: 10px 20px;
top: 15px;
width: auto;
max-width: 700px;
@@ -146,11 +146,18 @@
bottom: 15px;
color: #111;
z-index: 1000000;
- overflow: auto;
+ /*overflow: auto;*/
border-left: 10px solid #c6d6da;
border-top: 10px solid #c6d6da;
border-bottom: 10px solid #c6d6da;
- opacity: 0.9;
+ opacity: 1.0;
+ background: transparent url(panel_bg.png) repeat left top;
+}
+
+#djDebug .panelContent .panelScroll {
+ position: relative;
+ overflow: auto;
+ height: 90%;
}
#djDebug .panelContent p a, #djDebug .panelContent dl a {
@@ -161,8 +168,12 @@
}
#djDebug .panelContent h3 {
- color: #fff;
- padding: 0 0 5px;
+ color: #111;
+ font-size: 20px;
+ line-height: 25px;
+ margin-top: 2px;
+ margin-bottom: 0.5em;
+ font-variant: small-caps;
}
#djDebug .panelContent p {
@@ -177,6 +188,8 @@
#djDebug .panelContent table {
width: 100%;
clear: both;
+ border: 0;
+ padding: 0;
}
#djDebug .panelContent table a {
@@ -190,25 +203,31 @@
background-color: #333;
font-weight: bold;
color: #fff;
- font-size: 11px;
padding: 3px 7px 3px;
text-align: left;
cursor: pointer;
}
#djDebug .panelContent table td {
padding: 5px 10px;
- font-size: 11px;
+ font-size: 14px;
background: #fff;
color: #000;
vertical-align: top;
+ border: 0;
}
#djDebug .panelContent table tr.djDebugOdd td {
background: #eee;
}
#djDebug .panelContent .close {
- float: right;
- font-weight: bold;
+ text-indent: -9999999px;
+ display: block;
+ position: absolute;
+ top: 5px;
+ left: -25px;
+ background: url(close.png) no-repeat center center;
+ height: 40px;
+ width: 40px;
}
#djDebug .panelContent dt, #djDebug .panelContent dd {
diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html
index ab591dd..5f4b7e7 100644
--- a/debug_toolbar/templates/debug_toolbar/base.html
+++ b/debug_toolbar/templates/debug_toolbar/base.html
@@ -52,9 +52,11 @@
{% for panel in panels %}
{% if panel.has_content %}
-
{{ panel.title|safe }}
Close
- {{ panel.content|safe }}
+
{{ panel.title|safe }}
+
+ {{ panel.content|safe }}
+
{% endif %}
{% endfor %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 3142783..d102cdd 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -1,4 +1,3 @@
-
Cache Usage
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 463aa185a001f72b7c906209920cd70932123157 Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 15:06:45 +0300
Subject: Added hover state for close button, scroll padding
---
debug_toolbar/media/debug_toolbar/close_hover.png | Bin 0 -> 1158 bytes
debug_toolbar/media/debug_toolbar/toolbar.css | 5 +++++
2 files changed, 5 insertions(+)
create mode 100644 debug_toolbar/media/debug_toolbar/close_hover.png
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/close_hover.png b/debug_toolbar/media/debug_toolbar/close_hover.png
new file mode 100644
index 0000000..f868e80
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/close_hover.png differ
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 4211099..7ac200c 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -158,6 +158,7 @@
position: relative;
overflow: auto;
height: 90%;
+ padding: 0px 10px 10px 0px;
}
#djDebug .panelContent p a, #djDebug .panelContent dl a {
@@ -230,6 +231,10 @@
width: 40px;
}
+#djDebug .panelContent .close:hover {
+ background-image: url(close_hover.png);
+}
+
#djDebug .panelContent dt, #djDebug .panelContent dd {
display: block;
}
--
cgit v1.2.3
From 59874f33145722c6bb2d1fedb3d0679e6ce2caba Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 15:07:09 +0300
Subject: Proper handling of template panel title
---
debug_toolbar/panels/template.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 985a9d8..6eb826f 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -7,6 +7,7 @@ from django.dispatch import Signal
from django.template.context import get_standard_processors
from django.template.loader import render_to_string
from django.test.signals import template_rendered
+from django.template.defaultfilters import pluralize
from debug_toolbar.panels import DebugPanel
# Code taken and adapted from Simon Willison and Django Snippets:
@@ -45,7 +46,7 @@ class TemplateDebugPanel(DebugPanel):
return 'Templates'
def title(self):
- return 'Template path{{ template_dirs|length|pluralize }}:'
+ return 'Template path%s:' % pluralize(len(self.templates))
def url(self):
return ''
--
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/panels/template.py | 3 +--
debug_toolbar/templates/debug_toolbar/panels/templates.html | 5 +++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py
index 6eb826f..8c6a972 100644
--- a/debug_toolbar/panels/template.py
+++ b/debug_toolbar/panels/template.py
@@ -7,7 +7,6 @@ from django.dispatch import Signal
from django.template.context import get_standard_processors
from django.template.loader import render_to_string
from django.test.signals import template_rendered
-from django.template.defaultfilters import pluralize
from debug_toolbar.panels import DebugPanel
# Code taken and adapted from Simon Willison and Django Snippets:
@@ -46,7 +45,7 @@ class TemplateDebugPanel(DebugPanel):
return 'Templates'
def title(self):
- return 'Template path%s:' % pluralize(len(self.templates))
+ return 'Templates'
def url(self):
return ''
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 5f905eedd36213b88a3cb10dadaa6fd733229c3c Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Wed, 12 Aug 2009 15:19:10 +0300
Subject: Panel title larger, is monospaced
---
debug_toolbar/media/debug_toolbar/toolbar.css | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 7ac200c..de71ad2 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -170,13 +170,30 @@
#djDebug .panelContent h3 {
color: #111;
- font-size: 20px;
+ font-size: 24px;
line-height: 25px;
margin-top: 2px;
margin-bottom: 0.5em;
font-variant: small-caps;
}
+
+
+#djDebug .panelContent h4 {
+ font-weight: normal;
+}
+
+#djDebug .panelContent code {
+ font-family:
+ Consolas,
+ Monaco,
+ "Bitstream Vera Sans Mono",
+ "Lucida Console",
+ monospace;
+ font-size: inherit;
+}
+
+
#djDebug .panelContent p {
padding: 0 5px;
}
--
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/media/debug_toolbar/back.png | Bin 0 -> 1078 bytes
debug_toolbar/media/debug_toolbar/back_hover.png | Bin 0 -> 1084 bytes
debug_toolbar/media/debug_toolbar/toolbar.css | 63 ++++++-
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 ++---
13 files changed, 355 insertions(+), 271 deletions(-)
create mode 100644 debug_toolbar/media/debug_toolbar/back.png
create mode 100644 debug_toolbar/media/debug_toolbar/back_hover.png
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/back.png b/debug_toolbar/media/debug_toolbar/back.png
new file mode 100644
index 0000000..fa6a36b
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/back.png differ
diff --git a/debug_toolbar/media/debug_toolbar/back_hover.png b/debug_toolbar/media/debug_toolbar/back_hover.png
new file mode 100644
index 0000000..774f97c
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/back_hover.png differ
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index de71ad2..faf3b7a 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -137,10 +137,11 @@
display: none;
position: absolute;
margin: 0;
+ margin-left: 30px;
padding: 10px 20px;
top: 15px;
width: auto;
- max-width: 700px;
+ /*max-width: 800px;*/
min-width: 500px;
right: 200px;
bottom: 15px;
@@ -154,18 +155,41 @@
background: transparent url(panel_bg.png) repeat left top;
}
-#djDebug .panelContent .panelScroll {
- position: relative;
+#djDebug .panelContent .panelScrollWrap {
overflow: auto;
height: 90%;
- padding: 0px 10px 10px 0px;
+ width: 100%;
+}
+
+#djDebug .panelContent .panelScrollContent {
+ width: auto;
+ margin-right: 10px;
}
-#djDebug .panelContent p a, #djDebug .panelContent dl a {
+#djDebug .panelContent .boxed {
+ background-color: #fff;
+ padding: 5px;
+ border: 1px solid #c6d6da;
+}
+
+
+
+#djDebug .panelContent p a, #djDebug .panelContent dt a {
color: #000;
+ padding: 2px 4px;
}
-#djDebug .panelContent p a:hover, #djDebug .panelContent dl a:hover {
- color: #900;
+#djDebug .panelContent p a:hover, #djDebug .panelContent dt a:hover {
+ background-color: #ffc;
+}
+
+#djDebug .panelContent p a, #djDebug .panelContent dd a {
+ color: #000;
+ background-color: #eee;
+ padding: 2px 4px;
+}
+#djDebug .panelContent p a:hover, #djDebug .panelContent dd a:hover {
+ color: #111;
+ background-color: #ffc;
}
#djDebug .panelContent h3 {
@@ -181,6 +205,9 @@
#djDebug .panelContent h4 {
font-weight: normal;
+ margin-top: 0.5em;
+ font-size: 20px;
+ line-height: 24px;
}
#djDebug .panelContent code {
@@ -204,17 +231,21 @@
}
#djDebug .panelContent table {
- width: 100%;
+ /*width: 90%;*/
clear: both;
border: 0;
padding: 0;
+ margin: 0;
+ border-collapse: collapse;
+ border-spacing: 0;
}
#djDebug .panelContent table a {
color: #000;
+ padding: 2px 4px;
}
#djDebug .panelContent table a:hover {
- color: #900;
+ background-color: #ffc;
}
#djDebug .panelContent table th {
@@ -252,10 +283,24 @@
background-image: url(close_hover.png);
}
+#djDebug .panelContent .close.back {
+ background-image: url(back.png);
+}
+
+#djDebug .panelContent .close.back:hover {
+ background-image: url(back_hover.png);
+}
+
+
+
#djDebug .panelContent dt, #djDebug .panelContent dd {
display: block;
}
+#djDebug .panelContent dt {
+ margin-top: 0.75em;
+}
+
#djDebug .panelContent dd {
margin-left: 10px;
}
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 }}
-
{% 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 @@
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in headers.iteritems %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in headers.iteritems %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+
\ 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 %}
-
-
-
- | Level |
- Time |
- Message |
- Location |
-
-
-
- {% for record in records %}
-
- | {{ record.level }} |
- {{ record.time|date:"h:i:s m/d/Y" }} |
- {{ record.message }} |
- {{ record.file }}:{{ record.line }} |
-
- {% endfor %}
-
-
-{% else %}
-
No messages logged.
-{% endif %}
-
+
+ {% if records %}
+
+
+
+ | Level |
+ Time |
+ Message |
+ Location |
+
+
+
+ {% for record in records %}
+
+ | {{ record.level }} |
+ {{ record.time|date:"h:i:s m/d/Y" }} |
+ {{ record.message }} |
+ {{ record.file }}:{{ record.line }} |
+
+ {% endfor %}
+
+
+ {% 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 %}
-
-
-
-
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in cookies %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if cookies %}
+
+
+
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in cookies %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
SESSION Variables
-{% if session %}
-
-
-
-
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in session %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if session %}
+
+
+
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in session %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
GET Variables
-{% if get %}
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in get %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if get %}
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in get %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
+
+ {% endfor %}
+
+
+ {% else %}
+
None
+ {% endif %}
+
+
POST Variables
-{% if post %}
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in post %}
-
- | {{ key|escape }} |
- {{ value|join:", "|escape }} |
-
- {% endfor %}
-
-
-{% else %}
-
None
-{% endif %}
+
+ {% if post %}
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in post %}
+
+ | {{ key|escape }} |
+ {{ value|join:", "|escape }} |
+
+ {% endfor %}
+
+
+ {% 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 @@
-
-
-
- | Setting |
- Value |
-
-
-
- {% for var in settings.items|dictsort:"0" %}
-
- | {{ var.0 }} |
- {{ var.1|pprint }} |
-
- {% endfor %}
-
-
+
+
+
+
+ | Setting |
+ Value |
+
+
+
+ {% for var in settings.items|dictsort:"0" %}
+
+ | {{ var.0 }} |
+ {{ var.1|pprint }} |
+
+ {% endfor %}
+
+
+
\ 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 @@
-
-
-
- | Signal |
- Providing Args |
- Receivers |
-
-
-
- {% for name, signal, receivers in signals %}
-
- | {{ name|escape }} |
- {{ signal.providing_args|join:", " }} |
- {{ receivers|join:", " }} |
+
+
+
+
+ | Signal |
+ Providing Args |
+ Receivers |
- {% endfor %}
-
-
+
+
+ {% 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 @@
-
-
-
- | Time (ms) |
- Action |
- Stacktrace |
- Query |
-
-
-
- {% for query in queries %}
-
- | {{ query.time|floatformat:"2" }} |
-
- {% if query.params %}
- SELECT
- EXPLAIN
- {% if is_mysql %}
- PROFILE
- {% endif %}
- {% endif %}
- |
-
- {% if query.stacktrace %}
-
-
-
-
- | Line |
- Method |
- File |
-
- {% for file, line, method in query.stacktrace %}
-
- | {{ line }} |
- {{ method|escape }} |
- {{ file|escape }} |
-
- {% endfor %}
-
-
- {% endif %}
- |
- {{ query.sql|safe }} |
-
- {% endfor %}
-
-
+
+
+
+
+ | Time (ms) |
+ Action |
+ Stacktrace |
+ Query |
+
+
+
+ {% for query in queries %}
+
+ | {{ query.time|floatformat:"2" }} |
+
+ {% if query.params %}
+ SELECT
+ EXPLAIN
+ {% if is_mysql %}
+ PROFILE
+ {% endif %}
+ {% endif %}
+ |
+
+ {% if query.stacktrace %}
+
+
+
+
+ | Line |
+ Method |
+ File |
+
+ {% for file, line, method in query.stacktrace %}
+
+ | {{ line }} |
+ {{ method|escape }} |
+ {{ file|escape }} |
+
+ {% endfor %}
+
+
+ {% endif %}
+ |
+ {{ query.sql|safe }} |
+
+ {% endfor %}
+
+
+
+
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 }}
+
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 @@
-
-
-
-
-
-
-
- | Key |
- Value |
-
-
-
- {% for key, value in rows %}
-
- | {{ key|escape }} |
- {{ value|escape }} |
-
- {% endfor %}
-
-
+
+
+
+
+
+
+
+
+ | Key |
+ Value |
+
+
+
+ {% for key, value in rows %}
+
+ | {{ key|escape }} |
+ {{ value|escape }} |
+
+ {% endfor %}
+
+
+
--
cgit v1.2.3
From 70c97b31a1b0ef4c8002460653df1f7b85fca525 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:15:34 -0700
Subject: Standardized CSS to use tabs.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 202 +++++++++++++-------------
1 file changed, 101 insertions(+), 101 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index faf3b7a..e513b6c 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -1,44 +1,44 @@
#djDebug * {
- color: #000;
- float: none;
- margin: 0;
- padding: 0;
- position: static;
- text-align: left;
+ color: #000;
+ float: none;
+ margin: 0;
+ padding: 0;
+ position: static;
+ text-align: left;
font-family: Cambria, Georgia, serif;
font-size: 16px;
}
#djDebugToolbar {
- background: #111;
- width: 200px;
- z-index: 100000000;
- position:absolute;
- top:0;
- bottom:0;
- right:0;
+ background: #111;
+ width: 200px;
+ z-index: 100000000;
+ position:absolute;
+ top:0;
+ bottom:0;
+ right:0;
opacity:0.9;
}
#djDebugToolbar small {
- color:#999;
+ color:#999;
}
#djDebugToolbarHandle {
- position:absolute;
- background: #111;
- top:0;
- right:0;
- height: 25px;
- width: 25px;
- z-index: 100000000;
+ position:absolute;
+ background: #111;
+ top:0;
+ right:0;
+ height: 25px;
+ width: 25px;
+ z-index: 100000000;
}
#djDebugToolbarHandle ul li {
- list-style-type:none;
- padding: 0;
+ list-style-type:none;
+ padding: 0;
}
#djDebugToolbarHandle ul li a {
@@ -59,21 +59,21 @@
}
#djDebugToolbar ul {
- margin: 0;
- padding: 0;
- list-style: none;
+ margin: 0;
+ padding: 0;
+ list-style: none;
}
#djDebugToolbar li {
- border-bottom: 1px solid #222;
- color: #fff;
- display: block;
- font-weight: bold;
- float: none;
- margin: 0;
- padding: 0;
- position: relative;
- width: auto;
+ border-bottom: 1px solid #222;
+ color: #fff;
+ display: block;
+ font-weight: bold;
+ float: none;
+ margin: 0;
+ padding: 0;
+ position: relative;
+ width: auto;
}
@@ -121,33 +121,33 @@
#djDebugToolbar #djDebugButton {
- color: #92ef3f;
+ color: #92ef3f;
}
#djDebug pre {
- background-color: #ffffff;
+ background-color: #ffffff;
}
#djDebug tr.djDebugOdd pre {
- background-color: #eeeeee;
+ background-color: #eeeeee;
}
#djDebug .panelContent {
-
- display: none;
- position: absolute;
- margin: 0;
- margin-left: 30px;
- padding: 10px 20px;
- top: 15px;
- width: auto;
- /*max-width: 800px;*/
- min-width: 500px;
- right: 200px;
- bottom: 15px;
- color: #111;
- z-index: 1000000;
- /*overflow: auto;*/
+
+ display: none;
+ position: absolute;
+ margin: 0;
+ margin-left: 30px;
+ padding: 10px 20px;
+ top: 15px;
+ width: auto;
+ /*max-width: 800px;*/
+ min-width: 500px;
+ right: 200px;
+ bottom: 15px;
+ color: #111;
+ z-index: 1000000;
+ /*overflow: auto;*/
border-left: 10px solid #c6d6da;
border-top: 10px solid #c6d6da;
border-bottom: 10px solid #c6d6da;
@@ -175,29 +175,29 @@
#djDebug .panelContent p a, #djDebug .panelContent dt a {
- color: #000;
- padding: 2px 4px;
+ color: #000;
+ padding: 2px 4px;
}
#djDebug .panelContent p a:hover, #djDebug .panelContent dt a:hover {
background-color: #ffc;
}
#djDebug .panelContent p a, #djDebug .panelContent dd a {
- color: #000;
- background-color: #eee;
- padding: 2px 4px;
+ color: #000;
+ background-color: #eee;
+ padding: 2px 4px;
}
#djDebug .panelContent p a:hover, #djDebug .panelContent dd a:hover {
- color: #111;
+ color: #111;
background-color: #ffc;
}
#djDebug .panelContent h3 {
- color: #111;
- font-size: 24px;
- line-height: 25px;
- margin-top: 2px;
- margin-bottom: 0.5em;
+ color: #111;
+ font-size: 24px;
+ line-height: 25px;
+ margin-top: 2px;
+ margin-bottom: 0.5em;
font-variant: small-caps;
}
@@ -214,66 +214,66 @@
font-family:
Consolas,
Monaco,
- "Bitstream Vera Sans Mono",
- "Lucida Console",
- monospace;
- font-size: inherit;
+ "Bitstream Vera Sans Mono",
+ "Lucida Console",
+ monospace;
+ font-size: inherit;
}
#djDebug .panelContent p {
- padding: 0 5px;
+ padding: 0 5px;
}
#djDebug .panelContent p, #djDebug .panelContent table, #djDebug .panelContent ol, #djDebug .panelContent ul, #djDebug .panelContent dl {
- margin: 5px 0 15px;
- background-color: #fff;
+ margin: 5px 0 15px;
+ background-color: #fff;
}
#djDebug .panelContent table {
- /*width: 90%;*/
- clear: both;
- border: 0;
- padding: 0;
- margin: 0;
- border-collapse: collapse;
- border-spacing: 0;
+ /*width: 90%;*/
+ clear: both;
+ border: 0;
+ padding: 0;
+ margin: 0;
+ border-collapse: collapse;
+ border-spacing: 0;
}
#djDebug .panelContent table a {
- color: #000;
- padding: 2px 4px;
+ color: #000;
+ padding: 2px 4px;
}
#djDebug .panelContent table a:hover {
- background-color: #ffc;
+ background-color: #ffc;
}
#djDebug .panelContent table th {
- background-color: #333;
- font-weight: bold;
- color: #fff;
- padding: 3px 7px 3px;
- text-align: left;
- cursor: pointer;
+ background-color: #333;
+ font-weight: bold;
+ color: #fff;
+ padding: 3px 7px 3px;
+ text-align: left;
+ cursor: pointer;
}
#djDebug .panelContent table td {
- padding: 5px 10px;
- font-size: 14px;
- background: #fff;
- color: #000;
- vertical-align: top;
- border: 0;
+ padding: 5px 10px;
+ font-size: 14px;
+ background: #fff;
+ color: #000;
+ vertical-align: top;
+ border: 0;
}
#djDebug .panelContent table tr.djDebugOdd td {
background: #eee;
}
#djDebug .panelContent .close {
- text-indent: -9999999px;
- display: block;
- position: absolute;
- top: 5px;
- left: -25px;
+ text-indent: -9999999px;
+ display: block;
+ position: absolute;
+ top: 5px;
+ left: -25px;
background: url(close.png) no-repeat center center;
height: 40px;
width: 40px;
@@ -294,15 +294,15 @@
#djDebug .panelContent dt, #djDebug .panelContent dd {
- display: block;
+ display: block;
}
#djDebug .panelContent dt {
- margin-top: 0.75em;
+ margin-top: 0.75em;
}
#djDebug .panelContent dd {
- margin-left: 10px;
+ margin-left: 10px;
}
#djDebug .highlight { color: #000; }
--
cgit v1.2.3
From f2ad1c6d92a44aafb6ad991abbecb56771808178 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:27:06 -0700
Subject: Adding debug toolbar reset CSS.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index e513b6c..fa1d329 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -1,3 +1,20 @@
+/* Debug Toolbar CSS Reset, adapted from YUI CSS Reset */
+#djDebug {color:#000;background:#FFF;}
+#djDebug div,#djDebug dl,#djDebug dt,#djDebug dd,#djDebug ul,#djDebug ol,#djDebug li,#djDebug h1,#djDebug h2,#djDebug h3,#djDebug h4,#djDebug h5,#djDebug h6,#djDebug pre,#djDebug code,#djDebug form,#djDebug fieldset,#djDebug legend,#djDebug input,#djDebug button,#djDebug textarea,#djDebug p,#djDebug blockquote,#djDebug th,#djDebug td{margin:0;padding:0;}
+#djDebug table{border-collapse:collapse;border-spacing:0;}
+#djDebug fieldset,#djDebug img{border:0;}
+#djDebug address,#djDebug caption,#djDebug cite,#djDebug code,#djDebug dfn,#djDebug em,#djDebug strong,#djDebug th,#djDebug var,#djDebug optgroup{font-style:inherit;font-weight:inherit;}
+#djDebug del,#djDebug ins{text-decoration:none;}
+#djDebug li{list-style:none;}
+#djDebug caption,#djDebug th{text-align:left;}
+#djDebug h1,#djDebug h2,#djDebug h3,#djDebug h4,#djDebug h5,#djDebug h6{font-size:100%;font-weight:normal;}
+#djDebug q:before,#djDebug q:after{content:'';}
+#djDebug abbr,#djDebug acronym{border:0;font-variant:normal;}
+#djDebug sup{vertical-align:baseline;}
+#djDebug sub{vertical-align:baseline;}
+#djDebug legend{color:#000;}
+#djDebug input,#djDebug button,#djDebug textarea,#djDebug select,#djDebug optgroup,#djDebug option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}
+#djDebug input,#djDebug button,#djDebug textarea,#djDebug select{*font-size:100%;}
#djDebug * {
color: #000;
float: none;
--
cgit v1.2.3
From 58c6a530619617e20a1f0e4dbeb5e687153c89c3 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:27:50 -0700
Subject: Removed extra line spaces.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 12 ------------
1 file changed, 12 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index fa1d329..a4ded24 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -41,8 +41,6 @@
color:#999;
}
-
-
#djDebugToolbarHandle {
position:absolute;
background: #111;
@@ -93,8 +91,6 @@
width: auto;
}
-
-
#djDebugToolbar li>a,
#djDebugToolbar li>div.contentless {
font-weight: normal;
@@ -136,7 +132,6 @@
font-variant: normal;
}
-
#djDebugToolbar #djDebugButton {
color: #92ef3f;
}
@@ -189,8 +184,6 @@
border: 1px solid #c6d6da;
}
-
-
#djDebug .panelContent p a, #djDebug .panelContent dt a {
color: #000;
padding: 2px 4px;
@@ -218,8 +211,6 @@
font-variant: small-caps;
}
-
-
#djDebug .panelContent h4 {
font-weight: normal;
margin-top: 0.5em;
@@ -237,7 +228,6 @@
font-size: inherit;
}
-
#djDebug .panelContent p {
padding: 0 5px;
}
@@ -308,8 +298,6 @@
background-image: url(back_hover.png);
}
-
-
#djDebug .panelContent dt, #djDebug .panelContent dd {
display: block;
}
--
cgit v1.2.3
From 70c3ac3f98e9ff98d39c33f38fe6daa4437908e5 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:47:05 -0700
Subject: Deserify font family.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index a4ded24..2a60537 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -22,8 +22,7 @@
padding: 0;
position: static;
text-align: left;
- font-family: Cambria, Georgia, serif;
- font-size: 16px;
+ font-family:sans-serif;
}
#djDebugToolbar {
@@ -219,12 +218,7 @@
}
#djDebug .panelContent code {
- font-family:
- Consolas,
- Monaco,
- "Bitstream Vera Sans Mono",
- "Lucida Console",
- monospace;
+ font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", monospace;
font-size: inherit;
}
--
cgit v1.2.3
From 19ac04d32c1405cabe668464b8149b525d63f026 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:53:50 -0700
Subject: A few font size adjustments and removing declarations that have no
effect.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 2a60537..6c61ac0 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -97,7 +97,7 @@
font-variant: small-caps;
text-decoration: none;
display: block;
- font-size: 18px;
+ font-size: 16px;
padding: 10px 10px 5px 25px;
color: #fff;
}
@@ -202,11 +202,7 @@
}
#djDebug .panelContent h3 {
- color: #111;
font-size: 24px;
- line-height: 25px;
- margin-top: 2px;
- margin-bottom: 0.5em;
font-variant: small-caps;
}
--
cgit v1.2.3
From 94a64b13ec3770ae7e8e378ce2ddcc489766bd0a Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Tue, 18 Aug 2009 16:54:11 -0700
Subject: Pegged the panels to fill available space and moved close button.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 6c61ac0..676969c 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -148,14 +148,11 @@
display: none;
position: absolute;
margin: 0;
- margin-left: 30px;
padding: 10px 20px;
- top: 15px;
- width: auto;
- /*max-width: 800px;*/
- min-width: 500px;
+ top: 2px;
right: 200px;
- bottom: 15px;
+ bottom: 2px;
+ left: 2px;
color: #111;
z-index: 1000000;
/*overflow: auto;*/
@@ -269,11 +266,11 @@
text-indent: -9999999px;
display: block;
position: absolute;
- top: 5px;
- left: -25px;
- background: url(close.png) no-repeat center center;
+ top: 0;
+ right: 10px;
height: 40px;
width: 40px;
+ background: url(close.png) no-repeat center center;
}
#djDebug .panelContent .close:hover {
--
cgit v1.2.3
From 105152318f49c077c879a1b1ed9fc37e45b90c69 Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Fri, 21 Aug 2009 08:06:39 -0700
Subject: Remove added border on hover which was causing flicker and scrollbars
to appear.
---
debug_toolbar/media/debug_toolbar/toolbar.css | 1 -
1 file changed, 1 deletion(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 676969c..6156fb7 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -69,7 +69,6 @@
#djDebugToolbarHandle ul li a:hover {
color: #111;
background-color: #9fbb54;
- border: 1px solid #111;
}
#djDebugToolbar ul {
--
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/locale/es/LC_MESSAGES/django.mo | Bin 1052 -> 1081 bytes
debug_toolbar/locale/es/LC_MESSAGES/django.po | 4 ++++
debug_toolbar/templates/debug_toolbar/base.html | 2 +-
.../templates/debug_toolbar/panels/signals.html | 2 +-
debug_toolbar/templates/debug_toolbar/panels/sql.html | 2 +-
5 files changed, 7 insertions(+), 3 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.mo b/debug_toolbar/locale/es/LC_MESSAGES/django.mo
index 295c214..d8d3edd 100644
Binary files a/debug_toolbar/locale/es/LC_MESSAGES/django.mo and b/debug_toolbar/locale/es/LC_MESSAGES/django.mo differ
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po
index 07c8d30..ad12522 100644
--- a/debug_toolbar/locale/es/LC_MESSAGES/django.po
+++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po
@@ -18,6 +18,10 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+msgid "Hide"
+msgstr "Ocultar"
+
+
#: templates/debug_toolbar/base.html:30
msgid "Close"
msgstr "Cerrar"
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 @@
- | {% trans "Key" %} |
+ {% trans "Variable" %} |
{% trans "Value" %} |
@@ -75,7 +75,7 @@
{% else %}
- {% trans "None" %}
+ {% trans "No GET data" %}
{% endif %}
@@ -85,7 +85,7 @@
- | {% trans "Key" %} |
+ {% trans "Variable" %} |
{% trans "Value" %} |
@@ -99,6 +99,6 @@
{% 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 @@
- | Line |
+ {% trans "Line" %} |
Method |
File |
--
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/locale/es/LC_MESSAGES/django.mo | Bin 1285 -> 1318 bytes
debug_toolbar/locale/es/LC_MESSAGES/django.po | 11 ++++++-----
.../templates/debug_toolbar/panels/timer.html | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.mo b/debug_toolbar/locale/es/LC_MESSAGES/django.mo
index be1a7cc..1c8f042 100644
Binary files a/debug_toolbar/locale/es/LC_MESSAGES/django.mo and b/debug_toolbar/locale/es/LC_MESSAGES/django.mo differ
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po
index 3928554..a40979d 100644
--- a/debug_toolbar/locale/es/LC_MESSAGES/django.po
+++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-08-21 14:46-0700\n"
+"POT-Creation-Date: 2009-08-21 15:06-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -67,7 +67,6 @@ msgid "Function"
msgstr "Función"
#: templates/debug_toolbar/panels/headers.html:6
-#: templates/debug_toolbar/panels/timer.html:10
msgid "Key"
msgstr "Llave"
@@ -137,7 +136,6 @@ msgstr "Acción"
msgid "Line"
msgstr "Línea"
-
#: templates/debug_toolbar/panels/sql_explain.html:2
#: templates/debug_toolbar/panels/sql_profile.html:2
#: templates/debug_toolbar/panels/sql_select.html:2
@@ -155,5 +153,8 @@ msgstr "SQL Ejecutado"
msgid "Empty set"
msgstr "Set Vacío"
-# msgid "Settings from"
-# msgstr "Configuraciones de"
+#: templates/debug_toolbar/panels/timer.html:10
+msgid "Resource"
+msgstr "Recurso"
+
+
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 @@
- | {% trans "Key" %} |
+ {% trans "Resource" %} |
{% trans "Value" %} |
--
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/locale/es/LC_MESSAGES/django.mo | Bin 1318 -> 1413 bytes
debug_toolbar/locale/es/LC_MESSAGES/django.po | 17 ++++++++++++++---
debug_toolbar/templates/debug_toolbar/panels/sql.html | 6 +++---
.../templates/debug_toolbar/panels/templates.html | 3 ++-
4 files changed, 19 insertions(+), 7 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.mo b/debug_toolbar/locale/es/LC_MESSAGES/django.mo
index 1c8f042..a09808b 100644
Binary files a/debug_toolbar/locale/es/LC_MESSAGES/django.mo and b/debug_toolbar/locale/es/LC_MESSAGES/django.mo differ
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po
index a40979d..2d4c199 100644
--- a/debug_toolbar/locale/es/LC_MESSAGES/django.po
+++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-08-21 15:06-0700\n"
+"POT-Creation-Date: 2009-08-21 15:26-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -48,6 +48,7 @@ msgstr ""
#: templates/debug_toolbar/panels/cache.html:39
#: templates/debug_toolbar/panels/logger.html:8
+#: templates/debug_toolbar/panels/sql.html:6
#: templates/debug_toolbar/panels/sql_explain.html:7
#: templates/debug_toolbar/panels/sql_profile.html:7
#: templates/debug_toolbar/panels/sql_select.html:7
@@ -136,6 +137,14 @@ msgstr "Acción"
msgid "Line"
msgstr "Línea"
+#: templates/debug_toolbar/panels/sql.html:32
+msgid "Method"
+msgstr "Método"
+
+#: templates/debug_toolbar/panels/sql.html:33
+msgid "File"
+msgstr "Archivo"
+
#: templates/debug_toolbar/panels/sql_explain.html:2
#: templates/debug_toolbar/panels/sql_profile.html:2
#: templates/debug_toolbar/panels/sql_select.html:2
@@ -153,8 +162,10 @@ msgstr "SQL Ejecutado"
msgid "Empty set"
msgstr "Set Vacío"
+#: templates/debug_toolbar/panels/templates.html:14
+msgid "Template"
+msgstr "Plantilla"
+
#: templates/debug_toolbar/panels/timer.html:10
msgid "Resource"
msgstr "Recurso"
-
-
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 @@
- | Time (ms) |
+ {% trans "Time" %} (ms) |
{% trans "Action" %} |
Stacktrace |
Query |
@@ -29,8 +29,8 @@
| {% trans "Line" %} |
- Method |
- File |
+ {% trans "Method" %} |
+ {% trans "File" %} |
{% 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/media/debug_toolbar/toolbar.css | 98 +++++++++++-----------
debug_toolbar/media/debug_toolbar/toolbar.js | 2 +-
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 ++++++-------
6 files changed, 146 insertions(+), 132 deletions(-)
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css
index 029148c..9da3f32 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.css
+++ b/debug_toolbar/media/debug_toolbar/toolbar.css
@@ -133,75 +133,78 @@
}
#djDebug .panelContent {
-
display:none;
position:absolute;
margin:0;
- padding:10px 20px;
- top:2px;
+ top:0;
right:200px;
- bottom:2px;
- left:2px;
- color:#111;
+ bottom:0;
+ left:0;
+ background-color:#f6f6f6;
+ color:#666;
z-index:1000000;
- /*overflow:auto;*/
- border-left:10px solid #c6d6da;
- border-top:10px solid #c6d6da;
- border-bottom:10px solid #c6d6da;
- opacity:1.0;
- background:transparent url(panel_bg.png) repeat left top;
-}
-
-#djDebug .panelContent .panelScrollWrap {
overflow:auto;
- height:90%;
- width:100%;
}
-#djDebug .panelContent .panelScrollContent {
- width:auto;
- margin-right:10px;
+#djDebug .panelContent > div {
+ border-bottom:1px solid #ddd;
+ padding:10px 20px;
}
-#djDebug .panelContent .boxed {
- background-color:#fff;
- padding:5px;
- border:1px solid #c6d6da;
+.djDebugPanelTitle {
+ background-color:#ffc;
+ color:#666;
}
-
-#djDebug .panelContent p a, #djDebug .panelContent dt a {
- color:#000;
- padding:2px 4px;
+#djDebug h3 {
+ font-size:24px;
+ font-weight:bold;
+ font-variant:small-caps;
}
-#djDebug .panelContent p a:hover, #djDebug .panelContent dt a:hover {
- background-color:#ffc;
+
+#djDebug h4 {
+ font-size:20px;
+ font-weight:bold;
}
-#djDebug .panelContent p a, #djDebug .panelContent dd a {
- color:#000;
+#djDebug .panelContent {
background-color:#eee;
- padding:2px 4px;
-}
-#djDebug .panelContent p a:hover, #djDebug .panelContent dd a:hover {
- color:#111;
- background-color:#ffc;
+ color:#000;
}
-#djDebug .panelContent h3 {
- font-size:24px;
- font-variant:small-caps;
+#djDebug .panelContent table {
+ border:1px solid #ccc;
+ border-collapse:collapse;
+ width:100%;
+ background-color:#fff;
}
-
-#djDebug .panelContent h4 {
+#djDebug .panelContent tbody td,
+#djDebug .panelContent tbody th {
+ vertical-align:top;
+ padding:2px 3px;
+}
+#djDebug .panelContent thead th {
+ padding:1px 6px 1px 3px;
+ background:#fefefe;
+ text-align:left;
font-weight:normal;
- margin-top:0.5em;
- font-size:20px;
- line-height:24px;
+ font-size:11px;
+ border:1px solid #ddd;
+}
+#djDebug .panelContent tbody th {
+ width:12em;
+ text-align:right;
+ color:#666;
+ padding-right:.5em;
}
#djDebug .panelContent code {
font-family:Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", monospace;
- font-size:inherit;
+ font-size:12px;
+}
+/*
+#djDebug .panelContent p a:hover, #djDebug .panelContent dd a:hover {
+ color:#111;
+ background-color:#ffc;
}
#djDebug .panelContent p {
@@ -212,9 +215,7 @@
margin:5px 0 15px;
background-color:#fff;
}
-
#djDebug .panelContent table {
- /*width:90%;*/
clear:both;
border:0;
padding:0;
@@ -250,6 +251,7 @@
#djDebug .panelContent table tr.djDebugOdd td {
background:#eee;
}
+*/
#djDebug .panelContent .close {
text-indent:-9999999px;
diff --git a/debug_toolbar/media/debug_toolbar/toolbar.js b/debug_toolbar/media/debug_toolbar/toolbar.js
index 355a66f..b20a487 100644
--- a/debug_toolbar/media/debug_toolbar/toolbar.js
+++ b/debug_toolbar/media/debug_toolbar/toolbar.js
@@ -31,7 +31,7 @@ jQuery(function($j) {
$j('#djDebug a.remoteCall').click(function() {
$j('#djDebugWindow').load(this.href, {}, function() {
$j('#djDebugWindow a.back').click(function() {
- $j(this).parent().hide();
+ $j(this).parent().parent().hide();
return false;
});
});
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 }}
-
+
+
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
-
-
-
-
- {% for h in headers %}
- | {{ h|upper }} |
- {% endfor %}
-
-
-
- {% for row in result %}
-
- {% for column in row %}
- | {{ column|escape }} |
+
+
+
+ - Executed SQL
+ {{ sql|safe }}
+ - Time
+ - {{ time }} ms
+
+
+
+
+ {% for h in headers %}
+ | {{ h|upper }} |
{% endfor %}
- {% endfor %}
-
-
+
+
+ {% 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 %}
- | {{ h|upper }} |
- {% endfor %}
-
-
-
- {% for row in result %}
-
- {% for column in row %}
- | {{ column|escape }} |
+
+
+
+ - Executed SQL
+ {{ sql|safe }}
+ - Time
+ - {{ time }} ms
+
+
+
+
+ {% for h in headers %}
+ | {{ h|upper }} |
{% endfor %}
- {% endfor %}
-
-
+
+
+ {% 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 %}
- | {{ h|upper }} |
- {% endfor %}
-
-
-
- {% for row in result %}
-
- {% for column in row %}
- | {{ column|escape }} |
+
+
+
+ - Executed SQL
+ {{ sql|safe }}
+ - Time
+ - {{ time }} ms
+
+ {% if result %}
+
+
+
+ {% for h in headers %}
+ | {{ h|upper }} |
{% endfor %}
- {% endfor %}
-
-
-{% 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 7fa494e0dc1aa519ab937625e2f6f940861717f2 Mon Sep 17 00:00:00 2001
From: Idan Gazit
Date: Tue, 25 Aug 2009 01:04:12 +0300
Subject: Updated graphics for new colorscheme
---
debug_toolbar/media/debug_toolbar/back.png | Bin 1078 -> 1039 bytes
debug_toolbar/media/debug_toolbar/back_hover.png | Bin 1084 -> 1030 bytes
debug_toolbar/media/debug_toolbar/close.png | Bin 1130 -> 1045 bytes
debug_toolbar/media/debug_toolbar/close_hover.png | Bin 1158 -> 1155 bytes
debug_toolbar/media/debug_toolbar/djdt_vertical.png | Bin 0 -> 2054 bytes
debug_toolbar/media/debug_toolbar/indicator.png | Bin 278 -> 282 bytes
6 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 debug_toolbar/media/debug_toolbar/djdt_vertical.png
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/media/debug_toolbar/back.png b/debug_toolbar/media/debug_toolbar/back.png
index fa6a36b..6ac8a52 100644
Binary files a/debug_toolbar/media/debug_toolbar/back.png and b/debug_toolbar/media/debug_toolbar/back.png differ
diff --git a/debug_toolbar/media/debug_toolbar/back_hover.png b/debug_toolbar/media/debug_toolbar/back_hover.png
index 774f97c..452b673 100644
Binary files a/debug_toolbar/media/debug_toolbar/back_hover.png and b/debug_toolbar/media/debug_toolbar/back_hover.png differ
diff --git a/debug_toolbar/media/debug_toolbar/close.png b/debug_toolbar/media/debug_toolbar/close.png
index c22e2e8..c0e8135 100644
Binary files a/debug_toolbar/media/debug_toolbar/close.png and b/debug_toolbar/media/debug_toolbar/close.png differ
diff --git a/debug_toolbar/media/debug_toolbar/close_hover.png b/debug_toolbar/media/debug_toolbar/close_hover.png
index f868e80..5b2c812 100644
Binary files a/debug_toolbar/media/debug_toolbar/close_hover.png and b/debug_toolbar/media/debug_toolbar/close_hover.png differ
diff --git a/debug_toolbar/media/debug_toolbar/djdt_vertical.png b/debug_toolbar/media/debug_toolbar/djdt_vertical.png
new file mode 100644
index 0000000..c204965
Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/djdt_vertical.png differ
diff --git a/debug_toolbar/media/debug_toolbar/indicator.png b/debug_toolbar/media/debug_toolbar/indicator.png
index a21fc6e..dd2e0de 100644
Binary files a/debug_toolbar/media/debug_toolbar/indicator.png and b/debug_toolbar/media/debug_toolbar/indicator.png differ
--
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/locale/es/LC_MESSAGES/django.mo | Bin 0 -> 1413 bytes
debug_toolbar/locale/es/LC_MESSAGES/django.po | 171 +++++++++++++++++++++
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 +-
17 files changed, 245 insertions(+), 60 deletions(-)
create mode 100644 debug_toolbar/locale/es/LC_MESSAGES/django.mo
create mode 100644 debug_toolbar/locale/es/LC_MESSAGES/django.po
(limited to 'debug_toolbar')
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.mo b/debug_toolbar/locale/es/LC_MESSAGES/django.mo
new file mode 100644
index 0000000..a09808b
Binary files /dev/null and b/debug_toolbar/locale/es/LC_MESSAGES/django.mo differ
diff --git a/debug_toolbar/locale/es/LC_MESSAGES/django.po b/debug_toolbar/locale/es/LC_MESSAGES/django.po
new file mode 100644
index 0000000..2d4c199
--- /dev/null
+++ b/debug_toolbar/locale/es/LC_MESSAGES/django.po
@@ -0,0 +1,171 @@
+# Django Debug Toolbar en Español.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Percy Pérez-Pinedo , 2009.
+#
+# Caracteres especiales: á, é, í, ó, ú, ñ,
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-08-21 15:26-0700\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: templates/debug_toolbar/base.html:24
+msgid "Hide"
+msgstr "Ocultar"
+
+#: templates/debug_toolbar/base.html:56
+msgid "Close"
+msgstr "Cerrar"
+
+#: templates/debug_toolbar/panels/cache.html:14
+msgid "Total Calls"
+msgstr "Total Llamadas"
+
+#: templates/debug_toolbar/panels/cache.html:16
+msgid "Total Time"
+msgstr "Tiempo Total"
+
+#: templates/debug_toolbar/panels/cache.html:18
+msgid "Hits"
+msgstr ""
+
+#: templates/debug_toolbar/panels/cache.html:20
+msgid "Misses"
+msgstr ""
+
+#: templates/debug_toolbar/panels/cache.html:35
+msgid "Breakdown"
+msgstr ""
+
+#: templates/debug_toolbar/panels/cache.html:39
+#: templates/debug_toolbar/panels/logger.html:8
+#: templates/debug_toolbar/panels/sql.html:6
+#: templates/debug_toolbar/panels/sql_explain.html:7
+#: templates/debug_toolbar/panels/sql_profile.html:7
+#: templates/debug_toolbar/panels/sql_select.html:7
+msgid "Time"
+msgstr "Tiempo"
+
+#: templates/debug_toolbar/panels/cache.html:40
+msgid "Type"
+msgstr "Tipo"
+
+#: templates/debug_toolbar/panels/cache.html:41
+msgid "Parameters"
+msgstr "Parámetros"
+
+#: templates/debug_toolbar/panels/cache.html:42
+msgid "Function"
+msgstr "Función"
+
+#: templates/debug_toolbar/panels/headers.html:6
+msgid "Key"
+msgstr "Llave"
+
+#: templates/debug_toolbar/panels/headers.html:7
+#: templates/debug_toolbar/panels/request_vars.html:13
+#: templates/debug_toolbar/panels/request_vars.html:41
+#: templates/debug_toolbar/panels/request_vars.html:65
+#: templates/debug_toolbar/panels/request_vars.html:89
+#: templates/debug_toolbar/panels/settings_vars.html:7
+#: templates/debug_toolbar/panels/timer.html:11
+msgid "Value"
+msgstr "Valor"
+
+#: templates/debug_toolbar/panels/logger.html:7
+msgid "Level"
+msgstr "Nivel"
+
+#: templates/debug_toolbar/panels/logger.html:9
+msgid "Message"
+msgstr "Mensaje"
+
+#: templates/debug_toolbar/panels/logger.html:10
+msgid "Location"
+msgstr ""
+
+#: templates/debug_toolbar/panels/logger.html:25
+msgid "No messages logged"
+msgstr ""
+
+#: templates/debug_toolbar/panels/request_vars.html:12
+#: templates/debug_toolbar/panels/request_vars.html:40
+#: templates/debug_toolbar/panels/request_vars.html:64
+#: templates/debug_toolbar/panels/request_vars.html:88
+#, fuzzy
+msgid "Variable"
+msgstr "Variable"
+
+#: templates/debug_toolbar/panels/request_vars.html:26
+msgid "None"
+msgstr "Ninguno"
+
+#: templates/debug_toolbar/panels/request_vars.html:54
+msgid "No SESSION data"
+msgstr "No SESSION datos"
+
+#: templates/debug_toolbar/panels/request_vars.html:78
+msgid "No GET data"
+msgstr "No GET datos"
+
+#: templates/debug_toolbar/panels/request_vars.html:102
+msgid "No POST data"
+msgstr "No POST datos"
+
+#: templates/debug_toolbar/panels/settings_vars.html:6
+msgid "Setting"
+msgstr "Configuración"
+
+#: templates/debug_toolbar/panels/signals.html:6
+msgid "Signal"
+msgstr "Señal"
+
+#: templates/debug_toolbar/panels/sql.html:7
+msgid "Action"
+msgstr "Acción"
+
+#: templates/debug_toolbar/panels/sql.html:31
+msgid "Line"
+msgstr "Línea"
+
+#: templates/debug_toolbar/panels/sql.html:32
+msgid "Method"
+msgstr "Método"
+
+#: templates/debug_toolbar/panels/sql.html:33
+msgid "File"
+msgstr "Archivo"
+
+#: templates/debug_toolbar/panels/sql_explain.html:2
+#: templates/debug_toolbar/panels/sql_profile.html:2
+#: templates/debug_toolbar/panels/sql_select.html:2
+#: templates/debug_toolbar/panels/template_source.html:2
+msgid "Back"
+msgstr "Regresar"
+
+#: templates/debug_toolbar/panels/sql_explain.html:5
+#: templates/debug_toolbar/panels/sql_profile.html:5
+#: templates/debug_toolbar/panels/sql_select.html:5
+msgid "Executed SQL"
+msgstr "SQL Ejecutado"
+
+#: templates/debug_toolbar/panels/sql_select.html:30
+msgid "Empty set"
+msgstr "Set Vacío"
+
+#: templates/debug_toolbar/panels/templates.html:14
+msgid "Template"
+msgstr "Plantilla"
+
+#: templates/debug_toolbar/panels/timer.html:10
+msgid "Resource"
+msgstr "Recurso"
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 %}
-
-
+