equal
deleted
inserted
replaced
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
506 stitle = xml_escape(stitle) |
506 stitle = xml_escape(stitle) |
507 else: |
507 else: |
508 stitle = u' ' |
508 stitle = u' ' |
509 w(u'<div class="loginTitle">%s</div>' % stitle) |
509 w(u'<div class="loginTitle">%s</div>' % stitle) |
510 w(u'<div class="loginContent">\n') |
510 w(u'<div class="loginContent">\n') |
511 if showmessage and self._cw.message: |
511 message = self._cw.message # don't call self._cw.message twice |
512 w(u'<div class="loginMessage">%s</div>\n' % self._cw.message) |
512 if showmessage and message: |
|
513 w(u'<div class="loginMessage">%s</div>\n' % message) |
513 config = self._cw.vreg.config |
514 config = self._cw.vreg.config |
514 if config['auth-mode'] != 'http': |
515 if config['auth-mode'] != 'http': |
515 self.login_form(id) # Cookie authentication |
516 self.login_form(id) # Cookie authentication |
516 w(u'</div>') |
517 w(u'</div>') |
517 w(u'</div>\n') |
518 w(u'</div>\n') |