discourse-subscriptions/assets/javascripts/discourse/templates/admin/plugins-discourse-subscript...

40 lines
1.6 KiB
Handlebars
Raw Normal View History

2019-09-23 01:01:03 -04:00
2019-10-27 23:05:58 -04:00
<table class="table discourse-patrons-table">
2019-09-23 03:53:05 -04:00
<thead>
<tr>
2019-12-03 17:29:13 -05: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-13 18:51:04 -05:00
<th></th>
2019-09-23 03:53:05 -04:00
</tr>
</thead>
2019-09-24 21:18:11 -04:00
{{#each model as |subscription|}}
2019-09-23 03:53:05 -04:00
<tr>
2019-11-12 22:21:21 -05:00
<td>
2019-11-12 23:27:32 -05:00
{{#if subscription.metadataUserExists}}
<a href="{{unbound subscription.subscriptionUserPath}}">
{{subscription.metadata.username}}
</a>
2019-11-12 22:21:21 -05:00
{{/if}}
</td>
2019-11-28 04:44:38 -05:00
<td>{{subscription.id}}</td>
2019-10-22 19:30:04 -04:00
<td>{{subscription.customer}}</td>
<td>{{subscription.plan.product.name}}</td>
<td>{{subscription.plan.nickname}}</td>
2019-10-13 21:36:46 -04:00
<td>{{subscription.status}}</td>
2019-10-31 21:30:19 -04:00
<td class="td-right">{{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-09-23 03:53:05 -04:00
</tr>
{{/each}}
</table>