2021-01-31 14:17:44 -06:00
|
|
|
<h2>{{product.name}}</h2>
|
|
|
|
|
|
|
|
|
|
<p class="product-description">
|
|
|
|
|
{{html-safe product.description}}
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{{#if isLoggedIn}}
|
|
|
|
|
<div class="product-purchase">
|
|
|
|
|
{{#if product.repurchaseable}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="subscribe.show"
|
|
|
|
|
@model={{product.id}}
|
|
|
|
|
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
|
|
|
|
2021-02-15 15:17:45 -06:00
|
|
|
{{#if product.subscribed}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LinkTo
|
|
|
|
|
@route="user.billing.subscriptions"
|
|
|
|
|
@model={{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}}
|
|
|
|
|
{{#if 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"
|
|
|
|
|
@model={{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"
|
|
|
|
|
@model={{product.id}}
|
|
|
|
|
@disabled={{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}}
|