witten
/
luminotes
Archived
1
0
Fork 0

No longer displaying "subscribe" buttons if logged in as a demo user.

This commit is contained in:
Dan Helfman 2008-02-27 21:28:03 +00:00
parent 58cb5b4cce
commit 52f9de706d
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class Upgrade_note( Span ):
border = u"1",
id = u"upgrade_table",
),
( not user ) and P(
( not user or not user.username ) and P(
u"To upgrade your Luminotes account, please",
A( u"login", href = https_url + u"/login?after_login=/upgrade", target = u"_top" ),
u"first!",
@ -63,7 +63,7 @@ class Upgrade_note( Span ):
id = u"upgrade_table_area",
),
user and P(
user and user.username and P(
u"You're currently subscribed to Luminotes %s." %
rate_plans[ user.rate_plan ][ u"name" ].capitalize(),
( user.rate_plan > 0 ) and unsubscribe_button or None,
@ -180,7 +180,7 @@ class Upgrade_note( Span ):
class_ = u"price_text",
separator = u"",
),
user and user.rate_plan != index and plan.get( u"button" ).strip() and plan.get( u"button" ) % user.object_id or None,
user and user.username and user.rate_plan != index and plan.get( u"button" ).strip() and plan.get( u"button" ) % user.object_id or None,
) or None,
class_ = u"plan_name",
) for ( index, plan ) in enumerate( rate_plans ) ],