2024-11-20 17:34:34 +00:00
|
|
|
{{#if this.model.unconfigured}}
|
2021-07-04 21:53:55 +02:00
|
|
|
<p>{{i18n "discourse_subscriptions.admin.unconfigured"}}</p>
|
2022-06-11 06:54:30 -04:00
|
|
|
<p>
|
|
|
|
|
<a href="https://meta.discourse.org/t/discourse-subscriptions/140818/">
|
|
|
|
|
{{i18n "discourse_subscriptions.admin.on_meta"}}
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2020-05-28 10:32:57 -05:00
|
|
|
{{else}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<LoadMore
|
|
|
|
|
@selector=".discourse-patrons-table tr"
|
|
|
|
|
@action={{action "loadMore"}}
|
|
|
|
|
>
|
2021-02-05 11:57:53 -06:00
|
|
|
<table class="table discourse-patrons-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2022-06-11 06:54:30 -04: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>
|
2021-02-05 11:57:53 -06:00
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2022-06-11 06:54:30 -04:00
|
|
|
|
2021-07-04 21:53:55 +02:00
|
|
|
<tbody>
|
2024-11-20 17:34:34 +00:00
|
|
|
{{#each this.model.data as |subscription|}}
|
2021-07-04 21:53:55 +02:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
{{#if subscription.metadataUserExists}}
|
|
|
|
|
<a href={{subscription.subscriptionUserPath}}>
|
|
|
|
|
{{subscription.metadata.username}}
|
|
|
|
|
</a>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</td>
|
|
|
|
|
<td>{{subscription.id}}</td>
|
|
|
|
|
<td>{{subscription.customer}}</td>
|
|
|
|
|
<td>{{subscription.plan.product.name}}</td>
|
|
|
|
|
<td>{{subscription.plan.nickname}}</td>
|
|
|
|
|
<td>{{subscription.status}}</td>
|
|
|
|
|
<td class="td-right">{{format-unix-date subscription.created}}</td>
|
|
|
|
|
<td class="td-right">
|
|
|
|
|
{{#if subscription.loading}}
|
|
|
|
|
{{loading-spinner size="small"}}
|
|
|
|
|
{{else}}
|
2023-05-02 09:24:28 -05:00
|
|
|
<DButton
|
|
|
|
|
@disabled={{subscription.canceled}}
|
|
|
|
|
@label="cancel"
|
|
|
|
|
@action={{action "showCancelModal" subscription}}
|
|
|
|
|
@icon="times"
|
|
|
|
|
/>
|
2021-07-04 21:53:55 +02:00
|
|
|
{{/if}}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</tbody>
|
2021-02-05 11:57:53 -06:00
|
|
|
</table>
|
2023-05-02 09:24:28 -05:00
|
|
|
</LoadMore>
|
2021-07-04 21:53:55 +02:00
|
|
|
|
2024-11-20 17:34:34 +00:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}} />
|
2023-01-04 12:39:58 +00:00
|
|
|
{{/if}}
|