FIX: Users page wasn't loading more on mobile

This commit is contained in:
Robin Ward 2017-02-17 16:36:45 -05:00
parent e089515dab
commit bebc55eebd

View File

@ -1,24 +1,26 @@
<div class="container"> {{#load-more selector=".directory .user" action="loadMore"}}
<div class='directory'> <div class="container">
<div class='directory'>
<div class='clearfix user-controls'>
{{period-chooser period=period}}
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
</div>
{{#conditional-loading-spinner condition=model.loading}}
{{#if model.length}}
<div class='total-rows'>{{i18n "directory.total_rows" count=model.totalRows}}</div>
{{#each model as |item|}}
{{directory-item tagName="div" class="user" item=item showTimeRead=showTimeRead}}
{{/each}}
{{conditional-loading-spinner condition=model.loadingMore}}
{{else}}
<div class='clearfix'></div>
<p>{{i18n "directory.no_results"}}</p>
{{/if}}
{{/conditional-loading-spinner}}
<div class='clearfix user-controls'>
{{period-chooser period=period}}
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
</div> </div>
{{#conditional-loading-spinner condition=model.loading}}
{{#if model.length}}
<div class='total-rows'>{{i18n "directory.total_rows" count=model.totalRows}}</div>
{{#each model as |item|}}
{{directory-item tagName="div" class="user" item=item showTimeRead=showTimeRead}}
{{/each}}
{{conditional-loading-spinner condition=model.loadingMore}}
{{else}}
<div class='clearfix'></div>
<p>{{i18n "directory.no_results"}}</p>
{{/if}}
{{/conditional-loading-spinner}}
</div> </div>
</div> {{/load-more}}