overleaf/services/web/app/views/subscriptions/dashboard.pug

51 lines
1.6 KiB
Text
Raw Normal View History

2014-02-12 05:23:40 -05:00
extends ../layout
include ./dashboard/_team_name_mixin
2014-02-12 05:23:40 -05:00
block content
.content.content-alt(ng-cloak)
.container
2014-07-07 08:43:36 -04:00
.row
.col-md-8.col-md-offset-2
-if (fromPlansPage)
.alert.alert-warning
p You already have a subscription
.card
.page-header
h1 #{translate("your_subscription")}
-var hasDisplayedSubscription = false
-if (personalSubscription)
-hasDisplayedSubscription = true
include ./dashboard/_personal_subscription
-if (managedGroupSubscriptions && managedGroupSubscriptions.length > 0)
include ./dashboard/_managed_groups
-if (managedInstitutions && managedInstitutions.length > 0)
include ./dashboard/_managed_institutions
-if (managedPublishers && managedPublishers.length > 0)
include ./dashboard/_managed_publishers
-if (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
-hasDisplayedSubscription = true
include ./dashboard/_group_memberships
-if (confirmedMemberInstitutions && confirmedMemberInstitutions.length > 0)
include ./dashboard/_institution_memberships
-if (v1SubscriptionStatus)
include ./dashboard/_v1_subscription_status
-if (hasSubscription && !hasDisplayedSubscription)
-hasDisplayedSubscription = true
p You're on an #{settings.appName} Paid plan. Contact
a(href="mailto:support@overleaf.com") support@overleaf.com
| to find out more.
-if (!hasSubscription)
p You're on the #{settings.appName} Free plan.
|
a(href="/user/subscription/plans").btn.btn-primary Upgrade now