overleaf/services/web/app/views/subscriptions/dashboard.pug
Timothée Alby 300e7d2f12 Merge pull request #1449 from sharelatex/ta-subscription-page-fix
Fix Subscription Page for Users with Free Affiliation

GitOrigin-RevId: 3b3b2649c4ade40c7dc04e7c090748408de1fb6e
2019-01-28 14:38:16 +00:00

44 lines
1.3 KiB
Text

extends ../layout
include ./dashboard/_team_name_mixin
block content
.content.content-alt(ng-cloak)
.container
.row
.col-md-8.col-md-offset-2
.card
.page-header
h1 #{translate("your_subscription")}
-var hasAnySubscription = false
-if (personalSubscription)
-hasAnySubscription = true
include ./dashboard/_personal_subscription
-if (managedGroupSubscriptions && managedGroupSubscriptions.length > 0)
-hasAnySubscription = true
include ./dashboard/_managed_groups
-if (managedInstitutions && managedInstitutions.length > 0)
-hasAnySubscription = true
include ./dashboard/_managed_institutions
-if (managedPublishers && managedPublishers.length > 0)
-hasAnySubscription = true
include ./dashboard/_managed_publishers
-if (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
-hasAnySubscription = true
include ./dashboard/_group_memberships
-if (confirmedMemberInstitutions && confirmedMemberInstitutions.length > 0)
include ./dashboard/_institution_memberships
-if (v1SubscriptionStatus)
include ./dashboard/_v1_subscription_status
-if (!hasAnySubscription)
p You're on the #{settings.appName} Free plan.
|
a(href="/user/subscription/plans").btn.btn-primary Upgrade now