intial load more
This commit is contained in:
parent
0b8b89f1d4
commit
813937dd22
|
@ -1 +1,6 @@
|
|||
export default Ember.Controller.extend({});
|
||||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
loadMore() {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,27 +1,31 @@
|
|||
|
||||
<h2>{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}</h2>
|
||||
|
||||
<table class="table discourse_patrons_admin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.user'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.payment_intent'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.receipt_email'}}</th>
|
||||
<th>{{i18n 'created'}}</th>
|
||||
<th class="amount">{{i18n 'discourse_patrons.admin.table.head.amount'}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{#each model as |payment|}}
|
||||
<tr>
|
||||
<td>
|
||||
{{#link-to "adminUser.index" payment.user_id payment.username}}
|
||||
{{payment.username}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>{{{stripe-payment-link payment}}}</td>
|
||||
<td>{{payment.receipt_email}}</td>
|
||||
<td>{{{format-duration payment.created_at_age}}}</td>
|
||||
<td class="amount">{{payment.amount_currency}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{#load-more selector=".discourse-patrons-admin tr" action=(action "loadMore")}}
|
||||
{{#if model}}
|
||||
<table class="table discourse-patrons-admin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.user'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.payment_intent'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.table.head.receipt_email'}}</th>
|
||||
<th>{{i18n 'created'}}</th>
|
||||
<th class="amount">{{i18n 'discourse_patrons.admin.table.head.amount'}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{#each model as |payment|}}
|
||||
<tr>
|
||||
<td>
|
||||
{{#link-to "adminUser.index" payment.user_id payment.username}}
|
||||
{{payment.username}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>{{{stripe-payment-link payment}}}</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}}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.discourse_patrons_admin {
|
||||
.discourse-patrons-admin {
|
||||
.amount {
|
||||
text-align: right;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue