mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-04 08:39:31 +00:00
* DEV: Update CI workflows * DEV: Update deps * DEV: Fix template linting Co-authored-by: discoursebuild <build@discourse.org> Co-authored-by: Jarek Radosz <jradosz@gmail.com>
50 lines
1.3 KiB
Handlebars
50 lines
1.3 KiB
Handlebars
<h2>{{product.name}}</h2>
|
|
|
|
<p class="product-description">
|
|
{{html-safe product.description}}
|
|
</p>
|
|
|
|
{{#if isLoggedIn}}
|
|
<div class="product-purchase">
|
|
{{#if product.repurchaseable}}
|
|
{{#link-to "subscribe.show" product.id class="btn btn-primary"}}
|
|
{{i18n "discourse_subscriptions.subscribe.title"}}
|
|
{{/link-to}}
|
|
|
|
{{#if product.subscribed}}
|
|
{{#link-to
|
|
"user.billing.subscriptions"
|
|
currentUser.username
|
|
class="billing-link"
|
|
}}
|
|
{{i18n "discourse_subscriptions.subscribe.view_past"}}
|
|
{{/link-to}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{#if product.subscribed}}
|
|
<span class="purchased">
|
|
✓
|
|
{{i18n "discourse_subscriptions.subscribe.purchased"}}
|
|
</span>
|
|
|
|
{{#link-to
|
|
"user.billing.subscriptions"
|
|
currentUser.username
|
|
class="billing-link"
|
|
}}
|
|
{{i18n "discourse_subscriptions.subscribe.go_to_billing"}}
|
|
{{/link-to}}
|
|
{{else}}
|
|
{{#link-to
|
|
"subscribe.show"
|
|
product.id
|
|
disabled=product.subscribed
|
|
class="btn btn-primary"
|
|
}}
|
|
{{i18n "discourse_subscriptions.subscribe.title"}}
|
|
{{/link-to}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|