{{#d-section pageClass="user-subscriptions" class="user-content"}} {{#if model}} {{#each model as |subscription|}} {{/each}}
{{i18n 'discourse_subscriptions.user.subscriptions.id'}} {{i18n 'discourse_subscriptions.user.plans.product'}} {{i18n 'discourse_subscriptions.user.plans.rate'}} {{i18n 'discourse_subscriptions.user.subscriptions.status'}} {{i18n 'discourse_subscriptions.user.subscriptions.created_at'}}
{{subscription.id}} {{subscription.product.name}} {{subscription.plan.subscriptionRate}} {{subscription.status}} {{format-unix-date subscription.created}} {{#if subscription.loading}} {{loading-spinner size="small"}} {{else}} {{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}} {{/if}}
{{else}}
{{i18n 'discourse_subscriptions.user.subscriptions_help'}}
{{/if}} {{/d-section}}