2014-02-12 10:23:40 +00:00
|
|
|
extends ../layout
|
|
|
|
|
2018-11-20 10:48:21 +00:00
|
|
|
include ./dashboard/_team_name_mixin
|
|
|
|
|
2014-02-12 10:23:40 +00:00
|
|
|
block content
|
2015-12-08 15:45:52 +00:00
|
|
|
.content.content-alt(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
|
2018-11-19 15:44:51 +00:00
|
|
|
.card
|
2015-12-08 15:45:52 +00:00
|
|
|
.page-header
|
2018-11-19 15:44:51 +00:00
|
|
|
h1 #{translate("your_subscription")}
|
2015-12-08 18:23:28 +00:00
|
|
|
|
2018-11-19 15:44:51 +00:00
|
|
|
-var hasAnySubscription = false
|
|
|
|
-if (personalSubscription)
|
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_personal_subscription
|
2014-03-09 09:56:58 +00:00
|
|
|
|
2018-11-20 10:48:21 +00:00
|
|
|
-if (managedGroupSubscriptions && managedGroupSubscriptions.length > 0)
|
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_managed_groups
|
|
|
|
|
|
|
|
-if (managedInstitutions && managedInstitutions.length > 0)
|
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_managed_institutions
|
|
|
|
|
2018-12-18 13:22:44 +00:00
|
|
|
-if (managedPublishers && managedPublishers.length > 0)
|
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_managed_publishers
|
|
|
|
|
2018-11-20 10:48:21 +00:00
|
|
|
-if (memberGroupSubscriptions && memberGroupSubscriptions.length > 0)
|
2018-11-19 15:44:51 +00:00
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_group_memberships
|
2014-08-27 11:31:01 +00:00
|
|
|
|
2018-11-20 10:48:21 +00:00
|
|
|
-if (confirmedMemberInstitutions && confirmedMemberInstitutions.length > 0)
|
|
|
|
-hasAnySubscription = true
|
|
|
|
include ./dashboard/_institution_memberships
|
|
|
|
|
2018-11-30 13:03:35 +00:00
|
|
|
-if (v1SubscriptionStatus)
|
|
|
|
include ./dashboard/_v1_subscription_status
|
|
|
|
|
2018-11-19 15:44:51 +00:00
|
|
|
-if (!hasAnySubscription)
|
|
|
|
p You're on the #{settings.appName} Free plan.
|
|
|
|
|
|
|
|
|
a(href="/user/subscription/plans").btn.btn-primary Upgrade now
|