add register link
authorArthur Lutz <arthur.lutz@logilab.fr>
Mon, 16 Feb 2009 19:54:42 +0100
changeset 638 80f8808fc558
parent 637 a78ffe83fadc
child 639 ca0b062bded7
add register link
web/views/basecomponents.py
--- 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>]'