2014-02-12 05:23:40 -05:00
|
|
|
extends ../layout
|
|
|
|
|
2018-11-20 05:48:21 -05:00
|
|
|
include ./dashboard/_team_name_mixin
|
|
|
|
|
2014-02-12 05:23:40 -05:00
|
|
|
block content
|
2015-12-08 10:45:52 -05:00
|
|
|
.content.content-alt(ng-cloak)
|
2018-11-19 10:44:51 -05:00
|
|
|
.container
|
2014-07-07 08:43:36 -04:00
|
|
|
.row
|
2015-12-08 13:23:28 -05:00
|
|
|
.col-md-8.col-md-offset-2
|
2019-02-04 06:10:54 -05:00
|
|
|
-if (fromPlansPage)
|
|
|
|
.alert.alert-warning
|
|
|
|
p You already have a subscription
|
2018-11-19 10:44:51 -05:00
|
|
|
.card
|
2015-12-08 10:45:52 -05:00
|
|
|
.page-header
|
2018-11-19 10:44:51 -05:00
|
|
|
h1 #{translate("your_subscription")}
|
2015-12-08 13:23:28 -05:00
|
|
|
|
2019-02-04 06:10:54 -05:00
|
|
|
-var hasDisplayedSubscription = false
|
2018-11-19 10:44:51 -05:00
|
|
|
-if (personalSubscription)
|
2019-02-04 06:10:54 -05:00
|
|
|
-hasDisplayedSubscription = true
|
2018-11-19 10:44:51 -05:00
|
|
|
include ./dashboard/_personal_subscription
|
2014-03-09 05:56:58 -04:00
|
|
|
|
2018-11-20 05:48:21 -05:00
|
|
|
-if (managedGroupSubscriptions && managedGroupSubscriptions.length > 0)
|
|
|
|
include ./dashboard/_managed_groups
|
|
|
|
|
|
|
|
-if (managedInstitutions && managedInstitutions.length > 0)
|
|
|
|
include ./dashboard/_managed_institutions
|
|
|
|
|
2018-12-18 08:22:44 -05:00
|
|
|
-if (managedPublishers && managedPublishers.length > 0)
|
|
|
|
include ./dashboard/_managed_publishers
|
|
|
|
|
2018-11-20 05:48:21 -05:00
|
|
|
-if (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
|
2019-02-04 06:10:54 -05:00
|
|
|
-hasDisplayedSubscription = true
|
2018-11-19 10:44:51 -05:00
|
|
|
include ./dashboard/_group_memberships
|
2014-08-27 07:31:01 -04:00
|
|
|
|
2018-11-20 05:48:21 -05:00
|
|
|
-if (confirmedMemberInstitutions && confirmedMemberInstitutions.length > 0)
|
|
|
|
include ./dashboard/_institution_memberships
|
|
|
|
|
2018-11-30 08:03:35 -05:00
|
|
|
-if (v1SubscriptionStatus)
|
|
|
|
include ./dashboard/_v1_subscription_status
|
|
|
|
|
2019-02-11 06:24:46 -05:00
|
|
|
-if (!hasDisplayedSubscription)
|
|
|
|
-if (hasSubscription)
|
|
|
|
-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.
|
|
|
|
-else
|
|
|
|
p You're on the #{settings.appName} Free plan.
|
|
|
|
|
|
|
|
|
a(href="/user/subscription/plans").btn.btn-primary Upgrade now
|