2019-10-27 23:48:59 -04:00
|
|
|
|
2019-12-03 17:29:13 -05:00
|
|
|
{{i18n 'discourse_subscriptions.user.subscriptions.title'}}
|
2019-10-28 20:43:32 -04:00
|
|
|
|
2019-10-30 19:01:41 -04:00
|
|
|
{{#if model}}
|
|
|
|
<table class="table discourse-patrons-user-table">
|
|
|
|
<thead>
|
2019-12-03 17:29:13 -05:00
|
|
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.id'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.user.plans.product'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.user.plans.rate'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.status'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.user.subscriptions.created_at'}}</th>
|
2019-10-30 19:01:41 -04:00
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
{{#each model as |subscription|}}
|
|
|
|
<tr>
|
|
|
|
<td>{{subscription.id}}</td>
|
2019-11-26 18:48:30 -05:00
|
|
|
<td>{{subscription.product.name}}</td>
|
2019-10-30 20:41:01 -04:00
|
|
|
<td>{{subscription.plan.subscriptionRate}}</td>
|
2019-10-30 19:01:41 -04:00
|
|
|
<td>{{subscription.status}}</td>
|
2019-10-31 21:30:19 -04:00
|
|
|
<td>{{format-unix-date subscription.created}}</td>
|
2019-11-13 22:07:45 -05:00
|
|
|
<td class="td-right">
|
|
|
|
{{#if subscription.loading}}
|
|
|
|
{{loading-spinner size="small"}}
|
|
|
|
{{else}}
|
|
|
|
{{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2019-10-30 19:01:41 -04:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|
|
|
|
{{else}}
|
2019-12-03 17:29:13 -05:00
|
|
|
<p>{{i18n 'discourse_subscriptions.user.subscriptions_help'}}</p>
|
2019-10-30 19:01:41 -04:00
|
|
|
{{/if}}
|