mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-02 15:49:14 +00:00
* DEV: Update CI workflows * DEV: Update deps * DEV: Fix template linting Co-authored-by: discoursebuild <build@discourse.org> Co-authored-by: Jarek Radosz <jradosz@gmail.com>
59 lines
1.8 KiB
Handlebars
59 lines
1.8 KiB
Handlebars
<h3>{{i18n "discourse_subscriptions.admin.dashboard.title"}}</h3>
|
|
|
|
{{#load-more selector=".discourse-patrons-table tr" action=(action "loadMore")}}
|
|
{{#if model}}
|
|
<table class="table discourse-patrons-table">
|
|
<thead>
|
|
<tr>
|
|
<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>
|
|
<th
|
|
role="button"
|
|
onclick={{action "orderPayments" "created_at"}}
|
|
class="sortable"
|
|
>
|
|
{{i18n "created"}}
|
|
</th>
|
|
<th
|
|
role="button"
|
|
onclick={{action "orderPayments" "amount"}}
|
|
class="sortable amount"
|
|
>
|
|
{{i18n "discourse_subscriptions.admin.dashboard.table.head.amount"}}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#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}}
|
|
{{html-safe payment.payment_intent_id}}
|
|
{{/link-to}}
|
|
</td>
|
|
<td>{{payment.receipt_email}}</td>
|
|
<td>{{html-safe (format-duration payment.created_at_age)}}</td>
|
|
<td class="amount">{{payment.amount_currency}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{/if}}
|
|
{{/load-more}}
|