From bebc55eebddcfc7f64ee0230a92b31d05e022ed6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 17 Feb 2017 16:36:45 -0500 Subject: [PATCH] FIX: Users page wasn't loading more on mobile --- .../discourse/templates/mobile/users.hbs | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/mobile/users.hbs b/app/assets/javascripts/discourse/templates/mobile/users.hbs index 96c80d023ac..56417c588c4 100644 --- a/app/assets/javascripts/discourse/templates/mobile/users.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/users.hbs @@ -1,24 +1,26 @@ -
-
+{{#load-more selector=".directory .user" action="loadMore"}} +
+
+ +
+ {{period-chooser period=period}} + {{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}} +
+ + {{#conditional-loading-spinner condition=model.loading}} + {{#if model.length}} +
{{i18n "directory.total_rows" count=model.totalRows}}
+ {{#each model as |item|}} + {{directory-item tagName="div" class="user" item=item showTimeRead=showTimeRead}} + {{/each}} + + {{conditional-loading-spinner condition=model.loadingMore}} + {{else}} +
+

{{i18n "directory.no_results"}}

+ {{/if}} + {{/conditional-loading-spinner}} -
- {{period-chooser period=period}} - {{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
- - {{#conditional-loading-spinner condition=model.loading}} - {{#if model.length}} -
{{i18n "directory.total_rows" count=model.totalRows}}
- {{#each model as |item|}} - {{directory-item tagName="div" class="user" item=item showTimeRead=showTimeRead}} - {{/each}} - - {{conditional-loading-spinner condition=model.loadingMore}} - {{else}} -
-

{{i18n "directory.no_results"}}

- {{/if}} - {{/conditional-loading-spinner}} -
-
+{{/load-more}}