overleaf/services/web/app/views/subscriptions/dashboard.pug
James Allen 49e19cad64 Merge pull request #1162 from sharelatex/ja-show-group-management
Add group and institution membership and management info to subscription dashboard

GitOrigin-RevId: 1aba5d5a20cd00ff5090811d0f66dc9c4944dd60
2018-11-20 11:03:56 +00:00

41 lines
1.2 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 (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
-hasAnySubscription = true
include ./dashboard/_group_memberships
-if (confirmedMemberInstitutions && confirmedMemberInstitutions.length > 0)
-hasAnySubscription = true
include ./dashboard/_institution_memberships
-if (settings.overleaf && v1Subscriptions)
include ./dashboard/_v1_subscriptions
-if (!hasAnySubscription)
p You're on the #{settings.appName} Free plan.
|
a(href="/user/subscription/plans").btn.btn-primary Upgrade now