From f5cbbd9adc53afa18b9a6baf5589983b17935c8b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 29 Oct 2015 09:01:40 -0400 Subject: Update town square intro text. --- web/react/components/post_list.jsx | 47 ++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) (limited to 'web') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 0d69e56bf..b9741bac4 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -9,6 +9,7 @@ const LoadingScreen = require('./loading_screen.jsx'); const PostStore = require('../stores/post_store.jsx'); const ChannelStore = require('../stores/channel_store.jsx'); const UserStore = require('../stores/user_store.jsx'); +const TeamStore = require('../stores/team_store.jsx'); const SocketStore = require('../stores/socket_store.jsx'); const PreferenceStore = require('../stores/preference_store.jsx'); @@ -386,17 +387,55 @@ export default class PostList extends React.Component { } } createDefaultIntroMessage(channel) { + const team = TeamStore.getCurrent(); + let inviteModalLink; + if (team.type === Constants.INVITE_TEAM) { + inviteModalLink = ( + + {'Invite others to this team'} + + ); + } else { + inviteModalLink = ( + {'Invite others to this team'} + + ); + } + return (

{'Beginning of ' + channel.display_name}

- {'Welcome to ' + channel.display_name + '!'} + {'Welcome to ' + channel.display_name + '!'}

{'This is the first channel teammates see when they sign up - use it for posting updates everyone needs to know.'} -

- {'To create a new channel or join an existing one, go to the Left Sidebar under “Channels” and click “More…”.'} -

+ {inviteModalLink} + + {'Set a header'} + +
); } -- cgit v1.2.3-1-g7c22