diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index a473df7c5b..edc918e2a4 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -251,7 +251,6 @@ export default React.createClass({ case PageTypes.MyGroups: page_element = ; - if (!this.props.collapse_rhs) right_panel = ; break; case PageTypes.CreateRoom: diff --git a/src/components/structures/MyGroups.js b/src/components/structures/MyGroups.js index 658a17c88f..222e424b2d 100644 --- a/src/components/structures/MyGroups.js +++ b/src/components/structures/MyGroups.js @@ -16,7 +16,7 @@ limitations under the License. import React from 'react'; import sdk from '../../index'; -import { _t } from '../../languageHandler'; +import { _t, _tJsx } from '../../languageHandler'; import WithMatrixClient from '../../wrappers/WithMatrixClient'; import AccessibleButton from '../views/elements/AccessibleButton'; import dis from '../../dispatcher'; @@ -44,7 +44,7 @@ const GroupTile = React.createClass({ }); export default WithMatrixClient(React.createClass({ - displayName: 'GroupList', + displayName: 'MyGroups', propTypes: { matrixClient: React.PropTypes.object.isRequired, @@ -80,6 +80,7 @@ export default WithMatrixClient(React.createClass({ render: function() { const Loader = sdk.getComponent("elements.Spinner"); const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader'); + const TintableSvg = sdk.getComponent("elements.TintableSvg"); let content; if (this.state.groups) { @@ -105,12 +106,39 @@ export default WithMatrixClient(React.createClass({ return
-
- - {_t('Create a new group')} - +
+
+
+ {_t('Create a new group')} +
+ + + + {_t( + 'Create a group to represent your community! '+ + 'Define a set of rooms and your own custom homepage '+ + 'to mark out your space in the Matrix universe.' + )} +
+
+
+ {_t('Join an existing group')} +
+ + + + {_tJsx( + 'To join an exisitng group you\'ll have to '+ + 'know its group identifier; this will look '+ + 'something like +example:matrix.org.', + /(.*)<\/i>/, + (sub) => {sub}, + )} +
+
+
+ {content}
- {content}
; }, })); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index a3b81136d6..7de380e1d5 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -937,5 +937,8 @@ "Group IDs must be of the form +localpart:%(domain)s": "Group IDs must be of the form +localpart:%(domain)s", "It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s": "It is currently only possible to create groups on your own home server: use a group ID ending with %(domain)s", "Room creation failed": "Room creation failed", - "You are a member of these groups": "You are a member of these groups" + "You are a member of these groups": "You are a member of these groups", + "Create a group 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 group to represent your community! Define a set of rooms and your own custom homepage to mark out your space in the Matrix universe.", + "Join an existing group": "Join an existing group", + "To join an exisitng group you'll have to know its group identifier; this will look something like +example:matrix.org.": "To join an exisitng group you'll have to know its group identifier; this will look something like +example:matrix.org." }