A platform for community discussion. Free, open, simple.
UX: Display JIT when user list is empty (#26579)
Ella E002ff94dedce
diff --git a/app/assets/javascripts/discourse/app/templates/users.hbs b/app/assets/javascripts/discourse/app/templates/users.hbsindex e33ce513876..8c3e0634046 100644--- a/app/assets/javascripts/discourse/app/templates/users.hbs+++ b/app/assets/javascripts/discourse/app/templates/users.hbs@@ -77,8 +77,20 @@/><ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />{{else}}- <div class="clearfix"></div>- <p>{{i18n "directory.no_results"}}</p>+ <div class="empty-state">+ <div class="empty-state-body">+ <p>+ {{i18n "directory.no_results.body"}}+ {{#if this.currentUser.staff}}+ {{html-safe+ (i18n+ "directory.no_results.extra_body" basePath=(base-path)+ )+ }}+ {{/if}}+ </p>+ </div>+ </div>{{/if}}</ConditionalLoadingSpinner></div>diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex a0b7be3bbeb..e008cdc24f7 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -765,7 +765,9 @@ en:topic_count_long: "Topics Created"post_count: "Replies"post_count_long: "Replies Posted"- no_results: "No results were found."+ no_results:+ body: "A list of community members showing their activity will be shown here. For now the list is empty because your community is still brand new!"+ extra_body: "Admins and moderators can see and manage users in <a href='%{basePath}/admin/users/'>User Admin</a>."days_visited: "Visits"days_visited_long: "Days Visited"posts_read: "Read"