diff --git a/javascripts/discourse/connectors/users-directory-controls/user-card-directory-toggle.hbs b/javascripts/discourse/connectors/users-directory-controls/user-card-directory-toggle.hbs index d4da55b..631ffa0 100644 --- a/javascripts/discourse/connectors/users-directory-controls/user-card-directory-toggle.hbs +++ b/javascripts/discourse/connectors/users-directory-controls/user-card-directory-toggle.hbs @@ -1 +1 @@ -{{user-card-directory-toggle}} \ No newline at end of file + \ No newline at end of file diff --git a/javascripts/discourse/templates/users-as-card-directory.hbs b/javascripts/discourse/templates/users-as-card-directory.hbs index 804d872..a038891 100644 --- a/javascripts/discourse/templates/users-as-card-directory.hbs +++ b/javascripts/discourse/templates/users-as-card-directory.hbs @@ -1,9 +1,13 @@ +{{#if this.model.canLoadMore}} + {{hide-application-footer}} +{{/if}} + {{body-class "users-page"}}
- {{#load-more - selector=".user-card-directory .user-card-container" - action=(action "loadMore") - }} +
- {{period-chooser - period=period - onChange=(action (mut period)) - fullDay=false - }} - {{#if lastUpdatedAt}} + + {{#if this.lastUpdatedAt}}
{{i18n "directory.last_updated"}} - {{lastUpdatedAt}} + {{this.lastUpdatedAt}}
{{/if}}
- {{#if showGroupFilter}} - {{combo-box + {{#if this.showGroupFilter}} + {{/if}} - {{#if currentUser.staff}} - {{d-button - icon="wrench" - action=(action "showEditColumnsModal") + {{#if this.currentUser.staff}} + {{/if}}
- {{#conditional-loading-spinner condition=isLoading}} - {{#if userCards.length}} + + {{#if this.userCards.length}}
- {{#each userCards as |userCard|}} + {{#each this.userCards as |userCard|}}
- {{user-card-static - user=userCard.user - visible=true - loading=userCard.loading - username=userCard.user.username - showUser=this.userCardShowUser - }} + {{#if (theme-setting "show_stats")}} {{/each}}
- {{conditional-loading-spinner condition=model.loadingMore}} + {{else}} -
-

{{i18n "directory.no_results"}}

+
+
+

+ {{#if this.name}} + {{i18n "directory.no_results_with_search"}} + {{else}} + {{i18n "directory.no_results.body"}} + {{#if this.currentUser.staff}} + {{html-safe + (i18n + "directory.no_results.extra_body" basePath=(base-path) + ) + }} + {{/if}} + {{/if}} +

+
+
{{/if}} - {{/conditional-loading-spinner}} - +
- {{/load-more}} +
\ No newline at end of file