equal
deleted
inserted
replaced
326 __regid__ = 'header' |
326 __regid__ = 'header' |
327 main_cell_components = ('appliname', 'breadcrumbs') |
327 main_cell_components = ('appliname', 'breadcrumbs') |
328 |
328 |
329 def call(self, view, **kwargs): |
329 def call(self, view, **kwargs): |
330 self.main_header(view) |
330 self.main_header(view) |
331 self.w(u''' |
331 self.w(u'<div id="stateheader">') |
332 <div id="stateheader">''') |
|
333 self.state_header() |
332 self.state_header() |
334 self.w(u''' |
333 self.w(u'</div>') |
335 </div> |
|
336 ''') |
|
337 |
334 |
338 def main_header(self, view): |
335 def main_header(self, view): |
339 """build the top menu with authentification info and the rql box""" |
336 """build the top menu with authentification info and the rql box""" |
340 self.w(u'<table id="header"><tr>\n') |
337 self.w(u'<table id="header"><tr>\n') |
341 self.w(u'<td id="firstcolumn">') |
338 self.w(u'<td id="firstcolumn">') |
476 config = self._cw.vreg.config |
473 config = self._cw.vreg.config |
477 if config['auth-mode'] != 'http': |
474 if config['auth-mode'] != 'http': |
478 self.login_form(id) # Cookie authentication |
475 self.login_form(id) # Cookie authentication |
479 self.w(u'</div>') |
476 self.w(u'</div>') |
480 if self._cw.https and config.anonymous_user()[0]: |
477 if self._cw.https and config.anonymous_user()[0]: |
481 path = config['base-url'] + self._cw.relative_path() |
478 path = xml_escape(config['base-url'] + self._cw.relative_path()) |
482 self.w(u'<div class="loginMessage"><a href="%s">%s</a></div>\n' |
479 self.w(u'<div class="loginMessage"><a href="%s">%s</a></div>\n' |
483 % (path, self._cw._('No account? Try public access at %s') % path)) |
480 % (path, self._cw._('No account? Try public access at %s') % path)) |
484 self.w(u'</div>\n') |
481 self.w(u'</div>\n') |
485 |
482 |
486 def login_form(self, id): |
483 def login_form(self, id): |