Changed "upgrade" link to always show up, even for accounts with a rate plan > 0.
This commit is contained in:
parent
980ad74e79
commit
0d9ceeef10
|
@ -14,21 +14,20 @@ class User_area( Div ):
|
|||
) or Div(
|
||||
u"logged in as %s" % ( user.username or u"a guest" ),
|
||||
" | ",
|
||||
( user.username == None ) and Span(
|
||||
A(
|
||||
u"sign up",
|
||||
href = u"/sign_up",
|
||||
title = u"Sign up for a real Luminotes account.",
|
||||
),
|
||||
" | ",
|
||||
) or None,
|
||||
( user.username and user.rate_plan == 0 ) and Span(
|
||||
user.username and Span(
|
||||
A(
|
||||
u"upgrade",
|
||||
href = u"/upgrade",
|
||||
title = u"Upgrade your Luminotes account.",
|
||||
),
|
||||
" | ",
|
||||
) or Span(
|
||||
A(
|
||||
u"sign up",
|
||||
href = u"/sign_up",
|
||||
title = u"Sign up for a real Luminotes account.",
|
||||
),
|
||||
" | ",
|
||||
) or None,
|
||||
A(
|
||||
u"logout",
|
||||
|
|
Reference in New Issue