2019-09-23 15:01:03 +10:00
|
|
|
|
2019-10-28 14:05:58 +11:00
|
|
|
<table class="table discourse-patrons-table">
|
2019-09-23 17:53:05 +10:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-12-04 09:29:13 +11:00
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.user'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.subscription_id'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.customer'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.product'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.plan'}}</th>
|
|
|
|
<th>{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.status'}}</th>
|
|
|
|
<th class="td-right">{{i18n 'discourse_subscriptions.admin.subscriptions.subscription.created_at'}}</th>
|
2019-11-14 10:51:04 +11:00
|
|
|
<th></th>
|
2019-09-23 17:53:05 +10:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2019-09-25 11:18:11 +10:00
|
|
|
{{#each model as |subscription|}}
|
2019-09-23 17:53:05 +10:00
|
|
|
<tr>
|
2019-11-13 14:21:21 +11:00
|
|
|
<td>
|
2019-11-13 15:27:32 +11:00
|
|
|
{{#if subscription.metadataUserExists}}
|
|
|
|
<a href="{{unbound subscription.subscriptionUserPath}}">
|
|
|
|
{{subscription.metadata.username}}
|
|
|
|
</a>
|
2019-11-13 14:21:21 +11:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2019-11-28 20:44:38 +11:00
|
|
|
<td>{{subscription.id}}</td>
|
2019-10-23 10:30:04 +11:00
|
|
|
<td>{{subscription.customer}}</td>
|
2019-11-26 12:55:49 +11:00
|
|
|
<td>{{subscription.plan.product.name}}</td>
|
|
|
|
<td>{{subscription.plan.nickname}}</td>
|
2019-10-14 12:36:46 +11:00
|
|
|
<td>{{subscription.status}}</td>
|
2019-11-01 12:30:19 +11:00
|
|
|
<td class="td-right">{{format-unix-date subscription.created}}</td>
|
2019-11-14 14:07:45 +11: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-09-23 17:53:05 +10:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|