Suggested here: https://meta.discourse.org/t/subscriptions-suggestions-for-interface-improvements/177970 Changes order and alignment so it makes a bit more sense in the UX of the /s route. Otherwise it looks too cluttered. This specifically impacted products that can be repurchased.
32 lines
1.1 KiB
Handlebars
32 lines
1.1 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 "s.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 "s.show" product.id disabled=product.subscribed class="btn btn-primary"}}
|
|
{{i18n 'discourse_subscriptions.subscribe.title'}}
|
|
{{/link-to}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|