web/views/basecomponents.py
branch3.5
changeset 3002 a9d7eaa07475
parent 2937 36b11249014e
parent 2996 866a2c135c33
child 3023 7864fee8b4ec
child 3037 45de36c7d47c
--- a/web/views/basecomponents.py	Tue Aug 25 18:47:25 2009 +0200
+++ b/web/views/basecomponents.py	Wed Aug 26 00:02:57 2009 +0200
@@ -74,7 +74,7 @@
     id = 'help'
     property_defs = VISIBLE_PROP_DEF
     def call(self):
-        self.w(u'<a href="%s" class="help" title="%s">&nbsp;</a>'
+        self.w(u'<a href="%s" class="help" title="%s">&#160;</a>'
                % (self.build_url(_restpath='doc/main'),
                   self.req._(u'help'),))
 
@@ -110,11 +110,11 @@
     def anon_user_link(self):
         if self.config['auth-mode'] == 'cookie':
             self.w(self.req._('anonymous'))
-            self.w(u'''&nbsp;[<a class="logout" href="javascript: popupLoginBox();">%s</a>]'''
+            self.w(u'''&#160;[<a class="logout" href="javascript: popupLoginBox();">%s</a>]'''
                    % (self.req._('i18n_login_popup')))
         else:
             self.w(self.req._('anonymous'))
-            self.w(u'&nbsp;[<a class="logout" href="%s">%s</a>]'
+            self.w(u'&#160;[<a class="logout" href="%s">%s</a>]'
                    % (self.build_url('login'), self.req._('login')))
 
 
@@ -212,7 +212,7 @@
                     url, _('Any')))
         else:
             html.insert(0, u'<span class="selected">%s</span>' % _('Any'))
-        self.w(u'&nbsp;|&nbsp;'.join(html))
+        self.w(u'&#160;|&#160;'.join(html))
         self.w(u'</div>')
 
 class PdfViewComponent(component.Component):