diff --git a/src/components/structures/MyGroups.js b/src/components/structures/MyGroups.js index 6c9aa88b8d..bb0d42435e 100644 --- a/src/components/structures/MyGroups.js +++ b/src/components/structures/MyGroups.js @@ -118,9 +118,18 @@ export default withMatrixClient(React.createClass({ this.state.groups.forEach((g) => { groupNodes.push(); }); - content =
- { groupNodes } -
; + content = groupNodes.length > 0 ? +
+

{ _t('Your Communities') }

+
+ { groupNodes } +
+
: +
+ { _t( + "You're not currently a member of any communities.", + ) } +
; } else if (this.state.error) { content =
{ _t('Error whilst fetching joined communities') } @@ -131,38 +140,40 @@ export default withMatrixClient(React.createClass({ return
-
-
-
- { _t('Create a new community') } -
- +
+
+ - { _t( - 'Create a community to represent your community! '+ - 'Define a set of rooms and your own custom homepage '+ - 'to mark out your space in the Matrix universe.', - ) } +
+
+ { _t('Create a new community') } +
+ { _t( + 'Create a community to group together users and rooms! ' + + 'Build a custom homepage to mark out your space in the Matrix universe.', + ) } +
-
-
- { _t('Join an existing community') } -
- +
+ - { _tJsx( - 'To join an existing community you\'ll have to '+ - 'know its community identifier; this will look '+ - 'something like +example:matrix.org.', - /(.*)<\/i>/, - (sub) => { sub }, - ) } +
+
+ { _t('Join an existing community') } +
+ { _tJsx( + 'To join an existing community you\'ll have to '+ + 'know its community identifier; this will look '+ + 'something like +example:matrix.org.', + /(.*)<\/i>/, + (sub) => { sub }, + ) } +
-

{ _t('Your Communities') }

{ content }
; diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 4338287be3..a9f14151c9 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -698,12 +698,13 @@ "Signed Out": "Signed Out", "For security, this session has been signed out. Please sign in again.": "For security, this session has been signed out. Please sign in again.", "Logout": "Logout", + "Your Communities": "Your Communities", + "You're not currently a member of any communities.": "You're not currently a member of any communities.", "Error whilst fetching joined communities": "Error whilst fetching joined communities", "Create a new community": "Create a new community", - "Create a community to represent your community! Define a set of rooms and your own custom homepage to mark out your space in the Matrix universe.": "Create a community to represent your community! Define a set of rooms and your own custom homepage to mark out your space in the Matrix universe.", + "Create a community to group together users and rooms! Build a custom homepage to mark out your space in the Matrix universe.": "Create a community to group together users and rooms! Build a custom homepage to mark out your space in the Matrix universe.", "Join an existing community": "Join an existing community", "To join an existing community you'll have to know its community identifier; this will look something like +example:matrix.org.": "To join an existing community you'll have to know its community identifier; this will look something like +example:matrix.org.", - "Your Communities": "Your Communities", "You have no visible notifications": "You have no visible notifications", "Scroll to bottom of page": "Scroll to bottom of page", "Connectivity to the server has been lost.": "Connectivity to the server has been lost.",