# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1280222904 -7200 # Tue Jul 27 11:28:24 2010 +0200 # Node ID b0524eea1a71cc1acd26f1a73367102525c1b680 # Parent 11a1bfa10644f5d10a7be8cae1eb7c7e130247e2 #1193274: Warning on authentication for anonymous comments is misleading diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -210,11 +210,10 @@ self.comment_form(entity) def propose_to_login(self): - self.w(u'<div class="warning">%s ' % self._cw._('You are not authenticated.')) + self.w(u'<div class="warning">%s ' % self._cw._('You are not authenticated. Your comment will be anonymous if you do not <a onclick="showLoginBox()">login</a>.')) if 'registration' in self._cw.vreg.config.cubes(): - self.w(u'<a href="%s">%s</a> or ' % (self._cw.build_url('register'), - self._cw._(u'register'))) - self.w(u'<a onclick="showLoginBox()">%s</a>' % self._cw._(u'login')) + self.w(self.cw._(u' If you have no account, you may want to <a href="%s">create one</a>.') + % self._cw.build_url('register')) self.w(u'</div>') def comment_form(self, commented, newcomment=None):