mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 22:34:44 +08:00
FIX: Display empty message when no groups can be shown.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
export default Discourse.Route.extend({
|
||||
titleToken() {
|
||||
return I18n.t('groups.index');
|
||||
return I18n.t('groups.index.title');
|
||||
},
|
||||
|
||||
model(params) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="container group">
|
||||
{{#link-to "groups" class='group-breadcrumb'}}{{fa-icon 'arrow-left'}} {{i18n 'groups.index'}}{{/link-to}}
|
||||
{{#link-to "groups" class='group-breadcrumb'}}{{fa-icon 'arrow-left'}} {{i18n 'groups.index.title'}}{{/link-to}}
|
||||
|
||||
<div class='group-details-container'>
|
||||
<div class='group-info'>
|
||||
|
@ -1,7 +1,8 @@
|
||||
{{#d-section pageClass="groups"}}
|
||||
{{#load-more selector=".groups-table .groups-table-row" action="loadMore"}}
|
||||
<h1>{{i18n "groups.index"}}</h1>
|
||||
<h1>{{i18n "groups.index.title"}}</h1>
|
||||
|
||||
{{#if groups}}
|
||||
{{#load-more selector=".groups-table .groups-table-row" action="loadMore"}}
|
||||
<div class='container'>
|
||||
<table class="groups-table">
|
||||
<thead>
|
||||
@ -58,4 +59,7 @@
|
||||
{{/load-more}}
|
||||
|
||||
{{conditional-loading-spinner condition=groups.loadingMore}}
|
||||
{{else}}
|
||||
<p>{{i18n "groups.index.empty"}}</p>
|
||||
{{/if}}
|
||||
{{/d-section}}
|
||||
|
@ -103,7 +103,7 @@ export default createWidget('hamburger-menu', {
|
||||
links.push({ route: 'users', className: 'user-directory-link', label: 'directory.title' });
|
||||
}
|
||||
|
||||
links.push({ route: 'groups', className: 'groups-link', label: 'groups.index' });
|
||||
links.push({ route: 'groups', className: 'groups-link', label: 'groups.index.title' });
|
||||
|
||||
if (this.siteSettings.tagging_enabled) {
|
||||
links.push({ route: 'tags', label: 'tagging.tags' });
|
||||
|
@ -425,7 +425,9 @@ en:
|
||||
selector_placeholder: "Add members"
|
||||
owner: "owner"
|
||||
visible: "Group is visible to all users"
|
||||
index: "Groups"
|
||||
index:
|
||||
title: "Groups"
|
||||
empty: "There are no visible groups."
|
||||
title:
|
||||
one: "group"
|
||||
other: "groups"
|
||||
|
Reference in New Issue
Block a user