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

36 lines
1.4 KiB
Handlebars
Raw Normal View History

2019-12-03 17:29:13 -05:00
<h3>{{i18n 'discourse_subscriptions.admin.dashboard.title'}}</h3>
2019-09-23 01:01:03 -04:00
2019-10-27 23:05:58 -04:00
{{#load-more selector=".discourse-patrons-table tr" action=(action "loadMore")}}
2019-09-23 01:01:03 -04:00
{{#if model}}
2019-10-27 23:05:58 -04:00
<table class="table discourse-patrons-table">
2019-09-23 01:01:03 -04:00
<thead>
<tr>
2019-12-03 17:29:13 -05:00
<th>{{i18n 'discourse_subscriptions.admin.dashboard.table.head.user'}}</th>
<th>{{i18n 'discourse_subscriptions.admin.dashboard.table.head.payment_intent'}}</th>
<th>{{i18n 'discourse_subscriptions.admin.dashboard.table.head.receipt_email'}}</th>
2019-09-23 01:01:03 -04:00
<th onclick={{action "orderPayments" "created_at"}} class="sortable">{{i18n 'created'}}</th>
2019-12-03 17:29:13 -05:00
<th class="amount" onclick={{action "orderPayments" "amount"}} class="sortable amount">{{i18n 'discourse_subscriptions.admin.dashboard.table.head.amount'}}</th>
2019-09-23 01:01:03 -04:00
</tr>
</thead>
{{#each model as |payment|}}
<tr>
<td>
{{#link-to "adminUser.index" payment.user_id payment.username}}
{{payment.username}}
{{/link-to}}
</td>
<td>
{{#link-to "patrons.show" payment.payment_intent_id}}
{{{payment.payment_intent_id}}}
{{/link-to}}
</td>
<td>{{payment.receipt_email}}</td>
<td>{{{format-duration payment.created_at_age}}}</td>
<td class="amount">{{payment.amount_currency}}</td>
</tr>
{{/each}}
</table>
{{/if}}
{{/load-more}}