2024-11-20 17:34:34 +00:00
|
|
|
<h2>{{this.product.name}}</h2>
|
2021-01-31 14:17:44 -06:00
|
|
|
|
|
|
|
|
<p class="product-description">
|
2024-11-20 17:34:34 +00:00
|
|
|
{{html-safe this.product.description}}
|
2021-01-31 14:17:44 -06:00
|
|
|
</p>
|
|
|
|
|
|
2024-11-20 17:34:34 +00:00
|
|
|
{{#if this.isLoggedIn}}
|
2021-01-31 14:17:44 -06:00
|
|
|
<div class="product-purchase">
|
2024-11-20 17:34:34 +00:00
|
|
|
{{#if this.product.repurchaseable}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="subscribe.show"
|
2024-11-20 17:34:34 +00:00
|
|
|
@model={{this.product.id}}
|
2023-05-02 09:24:28 -05:00
|
|
|
class="btn btn-primary"
|
|
|
|
|
>
|
2021-07-04 21:53:55 +02:00
|
|
|
{{i18n "discourse_subscriptions.subscribe.title"}}
|
2023-05-02 09:24:28 -05:00
|
|
|
</LinkTo>
|
2022-06-11 06:54:30 -04:00
|
|
|
|
2024-11-20 17:34:34 +00:00
|
|
|
{{#if this.product.subscribed}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="user.billing.subscriptions"
|
2024-11-20 17:34:34 +00:00
|
|
|
@model={{this.currentUser.username}}
|
2022-06-11 06:54:30 -04:00
|
|
|
class="billing-link"
|
2023-05-02 09:24:28 -05:00
|
|
|
>
|
2021-07-04 21:53:55 +02:00
|
|
|
{{i18n "discourse_subscriptions.subscribe.view_past"}}
|
2023-05-02 09:24:28 -05:00
|
|
|
</LinkTo>
|
2021-02-15 15:17:45 -06:00
|
|
|
{{/if}}
|
2021-01-31 14:17:44 -06:00
|
|
|
{{else}}
|
2024-11-20 17:34:34 +00:00
|
|
|
{{#if this.product.subscribed}}
|
2022-06-11 06:54:30 -04:00
|
|
|
<span class="purchased">
|
|
|
|
|
✓
|
|
|
|
|
{{i18n "discourse_subscriptions.subscribe.purchased"}}
|
|
|
|
|
</span>
|
|
|
|
|
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="user.billing.subscriptions"
|
2024-11-20 17:34:34 +00:00
|
|
|
@model={{this.currentUser.username}}
|
2022-06-11 06:54:30 -04:00
|
|
|
class="billing-link"
|
2023-05-02 09:24:28 -05:00
|
|
|
>
|
2021-07-04 21:53:55 +02:00
|
|
|
{{i18n "discourse_subscriptions.subscribe.go_to_billing"}}
|
2023-05-02 09:24:28 -05:00
|
|
|
</LinkTo>
|
2021-01-31 14:17:44 -06:00
|
|
|
{{else}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="subscribe.show"
|
2024-11-20 17:34:34 +00:00
|
|
|
@model={{this.product.id}}
|
|
|
|
|
@disabled={{this.product.subscribed}}
|
2022-06-11 06:54:30 -04:00
|
|
|
class="btn btn-primary"
|
2023-05-02 09:24:28 -05:00
|
|
|
>
|
2021-07-04 21:53:55 +02:00
|
|
|
{{i18n "discourse_subscriptions.subscribe.title"}}
|
2023-05-02 09:24:28 -05:00
|
|
|
</LinkTo>
|
2021-01-31 14:17:44 -06:00
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2023-01-04 12:39:58 +00:00
|
|
|
{{/if}}
|