mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
82 lines
3.2 KiB
JavaScript
82 lines
3.2 KiB
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import $ from 'jquery';
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
|
import React from 'react';
|
|
|
|
export default class NotLoggedIn extends React.Component {
|
|
componentDidMount() {
|
|
$('body').addClass('sticky');
|
|
$('#root').addClass('container-fluid');
|
|
}
|
|
componentWillUnmount() {
|
|
$('body').removeClass('sticky');
|
|
$('#root').removeClass('container-fluid');
|
|
}
|
|
render() {
|
|
return (
|
|
<div className='inner-wrap'>
|
|
<div className='row content'>
|
|
{this.props.children}
|
|
<div className='footer-push'></div>
|
|
</div>
|
|
<div className='row footer'>
|
|
<div className='footer-pane col-xs-12'>
|
|
<div className='col-xs-12'>
|
|
<span className='pull-right footer-site-name'>{global.window.mm_config.SiteName}</span>
|
|
</div>
|
|
<div className='col-xs-12'>
|
|
<span className='pull-right footer-link copyright'>{'© 2015 Mattermost, Inc.'}</span>
|
|
<a
|
|
id='help_link'
|
|
className='pull-right footer-link'
|
|
target='_blank'
|
|
href={global.window.mm_config.HelpLink}
|
|
rel='noreferrer'
|
|
>
|
|
<FormattedMessage id='web.footer.help'/>
|
|
</a>
|
|
<a
|
|
id='terms_link'
|
|
className='pull-right footer-link'
|
|
target='_blank'
|
|
href={global.window.mm_config.TermsOfServiceLink}
|
|
rel='noreferrer'
|
|
>
|
|
<FormattedMessage id='web.footer.terms'/>
|
|
</a>
|
|
<a
|
|
id='privacy_link'
|
|
className='pull-right footer-link'
|
|
target='_blank'
|
|
href={global.window.mm_config.PrivacyPolicyLink}
|
|
rel='noreferrer'
|
|
>
|
|
<FormattedMessage id='web.footer.privacy'/>
|
|
</a>
|
|
<a
|
|
id='about_link'
|
|
className='pull-right footer-link'
|
|
target='_blank'
|
|
href={global.window.mm_config.AboutLink}
|
|
rel='noreferrer'
|
|
>
|
|
<FormattedMessage id='web.footer.about'/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
NotLoggedIn.defaultProps = {
|
|
};
|
|
|
|
NotLoggedIn.propTypes = {
|
|
children: React.PropTypes.object
|
|
};
|