From 0c9499874daed060b4df75361a4695ebb3e4dd30 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 14 Dec 2016 14:01:19 +0800 Subject: [PATCH] FIX: Missing no members message on group page. --- .../javascripts/discourse/templates/group-index.hbs | 4 ++-- config/locales/client.en.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/group-index.hbs b/app/assets/javascripts/discourse/templates/group-index.hbs index ec00b5415ce..0011c1525b4 100644 --- a/app/assets/javascripts/discourse/templates/group-index.hbs +++ b/app/assets/javascripts/discourse/templates/group-index.hbs @@ -1,4 +1,4 @@ -{{#if model}} +{{#if model.members}} {{#if canJoinGroup}} {{#if model.is_group_user}} {{d-button action="leaveGroup" @@ -50,5 +50,5 @@ {{conditional-loading-spinner condition=loading}} {{else}} -
{{i18n "groups.empty.users"}}
+
{{i18n "groups.empty.members"}}
{{/if}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index cacf9fd0abc..ba337b8443e 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -405,12 +405,12 @@ en: name_placeholder: "Group name, no spaces, same as username rule" public: "Allow users to join/leave the group freely (Requires group to be visible)" empty: - posts: "There is no post by members of this group." - members: "There is no member in this group." - mentions: "There is no mention of this group." - messages: "There is no message for this group." - topics: "There is no topic by members of this group." - logs: "There is no logs for this group." + posts: "There are no posts by members of this group." + members: "There are no members in this group." + mentions: "There are no mentions of this group." + messages: "There are no messages for this group." + topics: "There are no topics by members of this group." + logs: "There are no logs for this group." add: "Add" join: "Join Group" leave: "Leave Group"