mirror of
https://github.com/discourse/discourse.git
synced 2025-06-09 17:28:13 +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({
|
export default Discourse.Route.extend({
|
||||||
titleToken() {
|
titleToken() {
|
||||||
return I18n.t('groups.index');
|
return I18n.t('groups.index.title');
|
||||||
},
|
},
|
||||||
|
|
||||||
model(params) {
|
model(params) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="container group">
|
<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-details-container'>
|
||||||
<div class='group-info'>
|
<div class='group-info'>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{{#d-section pageClass="groups"}}
|
{{#d-section pageClass="groups"}}
|
||||||
{{#load-more selector=".groups-table .groups-table-row" action="loadMore"}}
|
<h1>{{i18n "groups.index.title"}}</h1>
|
||||||
<h1>{{i18n "groups.index"}}</h1>
|
|
||||||
|
|
||||||
|
{{#if groups}}
|
||||||
|
{{#load-more selector=".groups-table .groups-table-row" action="loadMore"}}
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<table class="groups-table">
|
<table class="groups-table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -58,4 +59,7 @@
|
|||||||
{{/load-more}}
|
{{/load-more}}
|
||||||
|
|
||||||
{{conditional-loading-spinner condition=groups.loadingMore}}
|
{{conditional-loading-spinner condition=groups.loadingMore}}
|
||||||
|
{{else}}
|
||||||
|
<p>{{i18n "groups.index.empty"}}</p>
|
||||||
|
{{/if}}
|
||||||
{{/d-section}}
|
{{/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: '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) {
|
if (this.siteSettings.tagging_enabled) {
|
||||||
links.push({ route: 'tags', label: 'tagging.tags' });
|
links.push({ route: 'tags', label: 'tagging.tags' });
|
||||||
|
@ -425,7 +425,9 @@ en:
|
|||||||
selector_placeholder: "Add members"
|
selector_placeholder: "Add members"
|
||||||
owner: "owner"
|
owner: "owner"
|
||||||
visible: "Group is visible to all users"
|
visible: "Group is visible to all users"
|
||||||
index: "Groups"
|
index:
|
||||||
|
title: "Groups"
|
||||||
|
empty: "There are no visible groups."
|
||||||
title:
|
title:
|
||||||
one: "group"
|
one: "group"
|
||||||
other: "groups"
|
other: "groups"
|
||||||
|
Reference in New Issue
Block a user