diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index a76d825451..1721a8b73b 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -22,7 +22,7 @@ import MatrixClientPeg from '../../MatrixClientPeg'; import sdk from '../../index'; import dis from '../../dispatcher'; import { sanitizedHtmlNode } from '../../HtmlUtils'; -import { _t } from '../../languageHandler'; +import { _t, _tJsx } from '../../languageHandler'; import AccessibleButton from '../views/elements/AccessibleButton'; import Modal from '../../Modal'; import classnames from 'classnames'; @@ -856,6 +856,18 @@ export default React.createClass({ let description = null; if (summary.profile && summary.profile.long_description) { description = sanitizedHtmlNode(summary.profile.long_description); + } else if (this.state.isUserPrivileged) { + description =
+ { _tJsx( + 'Your community hasn\'t got a Long Description, a HTML page to show to community members.
' + + 'Click here to open settings and give it one!', + [/
/], + [(sub) =>
]) + } +
; } const groupDescEditingClasses = classnames({ "mx_GroupView_groupDesc": true, diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e52220bb8c..99eca338fc 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -702,6 +702,7 @@ "You are a member of this community": "You are a member of this community", "Community Member Settings": "Community Member Settings", "Publish this community on your profile": "Publish this community on your profile", + "Your community hasn't got a Long Description, a HTML page to show to community members.
Click here to open settings and give it one!": "Your community hasn't got a Long Description, a HTML page to show to community members.
Click here to open settings and give it one!", "Long Description (HTML)": "Long Description (HTML)", "

HTML for your community's page

\n

\n Use the Long Description to introduce new members to the community, or distribute some important links.\n

\n

\n You can even use \"img\" tags, but only for images reachable from MXC URLs.\n

\n": "

HTML for your community's page

\n

\n Use the Long Description to introduce new members to the community, or distribute some important links.\n

\n

\n You can even use \"img\" tags, but only for images reachable from MXC URLs.\n

\n", "Description": "Description",