diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-29 10:18:45 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-29 10:18:45 -0400 |
commit | 9497ecb95423504c11e0d1cc2d70ef338fda41a5 (patch) | |
tree | c1e442996a6a91cc673161bd8f3727beaa0bb8e1 /web/react/components | |
parent | 63ea5e26913bd0cb7500a35ff20832732e48b7e2 (diff) | |
parent | d56757b745c7f3c194f0a0ad25900c8a462a51c6 (diff) | |
download | chat-9497ecb95423504c11e0d1cc2d70ef338fda41a5.tar.gz chat-9497ecb95423504c11e0d1cc2d70ef338fda41a5.tar.bz2 chat-9497ecb95423504c11e0d1cc2d70ef338fda41a5.zip |
Merge pull request #1227 from mattermost/plt-849
PLT-849 Update town square intro text.
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/post_list.jsx | 47 |
1 files changed, 43 insertions, 4 deletions
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 = ( + <a + className='intro-links' + href='#' + data-toggle='modal' + data-target='#invite_member' + > + <i className='fa fa-user-plus'></i>{'Invite others to this team'} + </a> + ); + } else { + inviteModalLink = ( + <a + className='intro-links' + href='#' + data-toggle='modal' + data-target='#get_link' + data-title='Team Invite' + data-value={Utils.getWindowLocationOrigin() + '/signup_user_complete/?id=' + team.id} + > + <i className='fa fa-user-plus'></i>{'Invite others to this team'} + </a> + ); + } + return ( <div className='channel-intro'> <h4 className='channel-intro__title'>{'Beginning of ' + channel.display_name}</h4> <p className='channel-intro__content'> - {'Welcome to ' + channel.display_name + '!'} + <strong>{'Welcome to ' + channel.display_name + '!'}</strong> <br/><br/> {'This is the first channel teammates see when they sign up - use it for posting updates everyone needs to know.'} - <br/><br/> - {'To create a new channel or join an existing one, go to the Left Sidebar under “Channels” and click “More…”.'} - <br/> </p> + {inviteModalLink} + <a + className='intro-links' + href='#' + data-toggle='modal' + data-target='#edit_channel' + data-header={channel.header} + data-title={channel.display_name} + data-channelid={channel.id} + > + <i className='fa fa-pencil'></i>{'Set a header'} + </a> + <br/> </div> ); } |