web/views/basecomponents.py
changeset 638 80f8808fc558
parent 533 215ecdb5f047
child 652 603c782dc092
--- a/web/views/basecomponents.py	Mon Feb 16 19:54:33 2009 +0100
+++ b/web/views/basecomponents.py	Mon Feb 16 19:54:42 2009 +0100
@@ -104,6 +104,10 @@
             self.w(self.req._('anonymous'))
             self.w(u'''&nbsp;[<a class="logout" href="javascript: popupLoginBox();">%s</a>]'''
                    % (self.req._('i18n_login_popup')))
+            # FIXME maybe have an other option to explicitely authorise registration
+            if self.config['anonymous-user']:
+                self.w(u'''&nbsp;[<a class="logout" href="?vid=register">%s</a>]'''
+                       % (self.req._('i18n_register_user')))
         else:
             self.w(self.req._('anonymous'))
             self.w(u'&nbsp;[<a class="logout" href="%s">%s</a>]'