2014-02-12 10:23:40 +00:00
extends ../layout
2018-11-20 10:48:21 +00:00
include ./dashboard/_team_name_mixin
2019-10-16 10:10:54 +00:00
block head-scripts
2021-03-25 14:02:21 +00:00
script(type="text/javascript", nonce=scriptNonce, src="https://js.recurly.com/v4/recurly.js")
2019-07-31 08:23:13 +00:00
2021-03-31 11:55:45 +00:00
block append meta
meta(name="ol-managedInstitutions", data-type="json", content=managedInstitutions)
2021-04-27 14:17:39 +00:00
meta(name="ol-planCodesChangingAtTermEnd", data-type="json", content=plans.planCodesChangingAtTermEnd)
2021-04-15 14:23:12 +00:00
if (personalSubscription && personalSubscription.recurly)
meta(name="ol-recurlyApiKey" content=settings.apis.recurly.publicKey)
meta(name="ol-subscription" data-type="json" content=personalSubscription)
2022-06-01 12:48:50 +00:00
meta(name="ol-recommendedCurrency" content=personalSubscription.recurly.currency)
2021-09-14 12:18:37 +00:00
meta(name="ol-groupPlans" data-type="json" content=groupPlans)
2022-01-11 14:57:03 +00:00
meta(name="ol-groupPlanModalOptions" data-type="json" content=groupPlanModalOptions)
2021-03-31 11:55:45 +00:00
2014-02-12 10:23:40 +00:00
block content
2021-07-27 13:23:05 +00:00
main.content.content-alt#main-content(ng-cloak)
2018-11-19 15:44:51 +00:00
.container
2014-07-07 12:43:36 +00:00
.row
2015-12-08 18:23:28 +00:00
.col-md-8.col-md-offset-2
2021-03-24 10:09:43 +00:00
if (fromPlansPage)
2019-02-04 11:10:54 +00:00
.alert.alert-warning
p You already have a subscription
2018-11-19 15:44:51 +00:00
.card
2015-12-08 15:45:52 +00:00
.page-header
2019-07-31 08:23:13 +00:00
h1 #{translate("your_subscription")}
2019-02-04 11:10:54 +00:00
-var hasDisplayedSubscription = false
2021-03-24 10:09:43 +00:00
if (personalSubscription)
2019-02-04 11:10:54 +00:00
-hasDisplayedSubscription = true
2018-11-19 15:44:51 +00:00
include ./dashboard/_personal_subscription
2014-03-09 09:56:58 +00:00
2021-03-24 10:09:43 +00:00
if (managedGroupSubscriptions && managedGroupSubscriptions.length > 0)
2018-11-20 10:48:21 +00:00
include ./dashboard/_managed_groups
2021-03-24 10:09:43 +00:00
if (managedInstitutions && managedInstitutions.length > 0)
2018-11-20 10:48:21 +00:00
include ./dashboard/_managed_institutions
2021-03-24 10:09:43 +00:00
if (managedPublishers && managedPublishers.length > 0)
2018-12-18 13:22:44 +00:00
include ./dashboard/_managed_publishers
2021-03-24 10:09:43 +00:00
if (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
2019-02-04 11:10:54 +00:00
-hasDisplayedSubscription = true
2018-11-19 15:44:51 +00:00
include ./dashboard/_group_memberships
2014-08-27 11:31:01 +00:00
2021-08-16 13:08:16 +00:00
include ./dashboard/_institution_memberships
2018-11-20 10:48:21 +00:00
2021-03-24 10:09:43 +00:00
if (v1SubscriptionStatus)
2018-11-30 13:03:35 +00:00
include ./dashboard/_v1_subscription_status
2021-03-24 10:09:43 +00:00
if (!hasDisplayedSubscription)
if (hasSubscription)
2019-02-11 11:24:46 +00:00
-hasDisplayedSubscription = true
2019-03-18 10:24:54 +00:00
p(ng-non-bindable) You're on an #{settings.appName} Paid plan. Contact
2019-02-11 11:24:46 +00:00
a(href="mailto:support@overleaf.com") support@overleaf.com
| to find out more.
2021-03-24 10:09:43 +00:00
else
2022-06-22 12:24:48 +00:00
p(ng-non-bindable)
| You are on the #{settings.appName} Free plan. Upgrade to access these
2022-10-06 14:46:46 +00:00
a(href="/learn/how-to/Overleaf_premium_features") Premium Features:
2021-08-31 12:45:53 +00:00
ul
li #{translate('invite_more_collabs')}
for feature in ['realtime_track_changes', 'full_doc_history', 'reference_search', 'reference_sync', 'dropbox_integration_lowercase', 'github_integration_lowercase', 'priority_support']
li #{translate(feature)}
a(ng-controller="UpgradeSubscriptionController" href="/user/subscription/plans" ng-click="upgradeSubscription()").btn.btn-primary Upgrade now
2022-05-19 12:45:51 +00:00
!= moduleIncludes("contactModalGeneral", locals)