web/views/basetemplates.py
branch3.5
changeset 3184 613064b49331
parent 3080 32c2b6a34ab2
parent 3166 2413e5291e8d
child 3185 bd0126d17e83
child 3242 390acf7594ed
equal deleted inserted replaced
3177:e7ae807554d9 3184:613064b49331
   478 
   478 
   479     def call(self, id, klass, title=True, message=True):
   479     def call(self, id, klass, title=True, message=True):
   480         self.req.add_css('cubicweb.login.css')
   480         self.req.add_css('cubicweb.login.css')
   481         self.w(u'<div id="%s" class="%s">' % (id, klass))
   481         self.w(u'<div id="%s" class="%s">' % (id, klass))
   482         if title:
   482         if title:
   483             self.w(u'<div id="loginTitle">%s</div>'
   483             stitle = self.req.property_value('ui.site-title')
   484                    % (self.req.property_value('ui.site-title') or u'&#160;'))
   484             if stitle:
       
   485                 stitle = xml_escape(stitle)
       
   486             else:
       
   487                 stitle = u'&#160;'
       
   488             self.w(u'<div id="loginTitle">%s</div>' % stitle)
   485         self.w(u'<div id="loginContent">\n')
   489         self.w(u'<div id="loginContent">\n')
   486 
   490 
   487         if message:
   491         if message:
   488             self.display_message()
   492             self.display_message()
   489         if self.config['auth-mode'] == 'http':
   493         if self.config['auth-mode'] == 'http':