equal
deleted
inserted
replaced
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' ')) |
484 if stitle: |
|
485 stitle = xml_escape(stitle) |
|
486 else: |
|
487 stitle = u' ' |
|
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': |