mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.3 KiB
63 lines
2.3 KiB
<div class="align-items-center container d-flex h-100 justify-content-center">
|
|
<div class="row w-100">
|
|
<div class="col">
|
|
<div class="align-items-center d-flex flex-column">
|
|
<gf-membership-card
|
|
[expiresAt]="user?.subscription?.expiresAt | date: defaultDateFormat"
|
|
[name]="user?.subscription?.type"
|
|
/>
|
|
@if (user?.subscription?.type === 'Basic') {
|
|
<div class="d-flex flex-column mt-5">
|
|
@if (
|
|
hasPermissionForSubscription && hasPermissionToUpdateUserSettings
|
|
) {
|
|
<button color="primary" mat-flat-button (click)="onCheckout()">
|
|
@if (user.subscription.offer === 'default') {
|
|
<ng-container i18n>Upgrade Plan</ng-container>
|
|
} @else if (
|
|
user.subscription.offer === 'renewal' ||
|
|
user.subscription.offer === 'renewal-early-bird'
|
|
) {
|
|
<ng-container i18n>Renew Plan</ng-container>
|
|
}
|
|
</button>
|
|
@if (price) {
|
|
<div class="mt-1 text-center">
|
|
@if (coupon) {
|
|
<del class="text-muted"
|
|
>{{ baseCurrency }} {{ price }}</del
|
|
> {{ baseCurrency }} {{ price - coupon }}
|
|
} @else {
|
|
{{ baseCurrency }} {{ price }}
|
|
}
|
|
<span i18n>per year</span>
|
|
</div>
|
|
}
|
|
}
|
|
<div class="align-items-center d-flex justify-content-center mt-4">
|
|
@if (!user?.subscription?.expiresAt) {
|
|
<a class="mx-1" mat-stroked-button [href]="trySubscriptionMail"
|
|
><span i18n>Try Premium</span>
|
|
<gf-premium-indicator
|
|
class="d-inline-block ml-1"
|
|
[enableLink]="false"
|
|
/>
|
|
</a>
|
|
}
|
|
@if (hasPermissionToUpdateUserSettings) {
|
|
<a
|
|
class="mx-1"
|
|
i18n
|
|
mat-stroked-button
|
|
[routerLink]=""
|
|
(click)="onRedeemCoupon()"
|
|
>Redeem Coupon</a
|
|
>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|