--- a/web/views/basecomponents.py Fri Jun 19 08:23:45 2009 +0200
+++ b/web/views/basecomponents.py Fri Jun 19 08:27:41 2009 +0200
@@ -148,8 +148,10 @@
site_wide = True
def call(self):
- self.w(u'<span id="appliName"><a href="%s">%s</a></span>' % (
- self.req.base_url(), self.req.property_value('ui.site-title')))
+ title = self.req.property_value('ui.site-title')
+ if title:
+ self.w(u'<span id="appliName"><a href="%s">%s</a></span>' % (
+ self.req.base_url(), title))
class SeeAlsoVComponent(component.RelatedObjectsVComponent):
--- a/web/views/basetemplates.py Fri Jun 19 08:23:45 2009 +0200
+++ b/web/views/basetemplates.py Fri Jun 19 08:27:41 2009 +0200
@@ -431,7 +431,7 @@
self.w(u'<div id="%s" class="%s">' % (id, klass))
if title:
self.w(u'<div id="loginTitle">%s</div>'
- % self.req.property_value('ui.site-title'))
+ % (self.req.property_value('ui.site-title') or u' '))
self.w(u'<div id="loginContent">\n')
if message: