2019-10-28 14:48:59 +11:00
|
|
|
|
2019-10-31 10:01:41 +11:00
|
|
|
{{i18n 'discourse_patrons.user.subscriptions.title'}}
|
2019-10-29 11:43:32 +11:00
|
|
|
|
2019-10-31 10:01:41 +11:00
|
|
|
{{#if model}}
|
|
|
|
|
<table class="table discourse-patrons-user-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<th>{{i18n 'discourse_patrons.user.subscriptions.id'}}</th>
|
2019-10-31 11:41:01 +11:00
|
|
|
<th>{{i18n 'discourse_patrons.user.plans.rate'}}</th>
|
2019-10-31 10:01:41 +11:00
|
|
|
<th>{{i18n 'discourse_patrons.user.subscriptions.status'}}</th>
|
|
|
|
|
<th>{{i18n 'discourse_patrons.user.subscriptions.created_at'}}</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</thead>
|
|
|
|
|
{{#each model as |subscription|}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{subscription.id}}</td>
|
2019-10-31 11:41:01 +11:00
|
|
|
<td>{{subscription.plan.subscriptionRate}}</td>
|
2019-10-31 10:01:41 +11:00
|
|
|
<td>{{subscription.status}}</td>
|
|
|
|
|
<td>{{format-date subscription.createdFormatted}}</td>
|
|
|
|
|
<td class="td-right">{{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</table>
|
|
|
|
|
{{else}}
|
|
|
|
|
<p>{{i18n 'discourse_patrons.user.subscriptions_help'}}</p>
|
|
|
|
|
{{/if}}
|