UX: Display JIT when user list is empty (#26579)

* UX: Display JIT when user list is empty

* UX: Remove empty state heading

* DEV: add spacing by enclosing empty state body in <p> tag
This commit is contained in:
Ella E 2024-04-09 13:52:21 -06:00 committed by GitHub
parent 72ac675e4e
commit 002ff94ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 3 deletions

View File

@ -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>

View File

@ -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"