intial load more

This commit is contained in:
Rimian Perkins 2019-09-14 17:04:02 +10:00
parent 0b8b89f1d4
commit 813937dd22
3 changed files with 35 additions and 26 deletions

View File

@ -1 +1,6 @@
export default Ember.Controller.extend({}); export default Ember.Controller.extend({
actions: {
loadMore() {
}
}
});

View File

@ -1,7 +1,9 @@
<h2>{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}</h2> <h2>{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}</h2>
<table class="table discourse_patrons_admin"> {{#load-more selector=".discourse-patrons-admin tr" action=(action "loadMore")}}
{{#if model}}
<table class="table discourse-patrons-admin">
<thead> <thead>
<tr> <tr>
<th>{{i18n 'discourse_patrons.admin.table.head.user'}}</th> <th>{{i18n 'discourse_patrons.admin.table.head.user'}}</th>
@ -25,3 +27,5 @@
</tr> </tr>
{{/each}} {{/each}}
</table> </table>
{{/if}}
{{/load-more}}

View File

@ -32,7 +32,7 @@
} }
} }
.discourse_patrons_admin { .discourse-patrons-admin {
.amount { .amount {
text-align: right; text-align: right;
} }