From 565b100f9d97214043ae93c51d276951a65331e8 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 11 Aug 2009 09:45:18 -0700 Subject: Refactored the UI to be a right hand side vertical toolbar. DebugPanel subclass grew a subtitle method to display informative text under the title. --- debug_toolbar/panels/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debug_toolbar/panels/__init__.py') diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py index 54b3318..459e550 100644 --- a/debug_toolbar/panels/__init__.py +++ b/debug_toolbar/panels/__init__.py @@ -15,8 +15,13 @@ class DebugPanel(object): return 'djDebug%sPanel' % (self.name.replace(' ', '')) def title(self): + """Title showing in toolbar""" raise NotImplementedError + def subtitle(self): + """Subtitle showing until title in toolbar""" + return '' + def url(self): raise NotImplementedError -- 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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug_toolbar/panels/__init__.py') 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 '' -- 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 ++++ 1 file changed, 4 insertions(+) (limited to 'debug_toolbar/panels/__init__.py') 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 -- cgit v1.2.3