summaryrefslogtreecommitdiffstats
path: root/webapp/components/header_footer_template.jsx
blob: 8267c73c538d792e247d5706e5f2b9195f46309c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 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-2016 Mattermost, Inc.'}</span>
                            <a
                                id='help_link'
                                className='pull-right footer-link'
                                target='_blank'
                                rel='noopener noreferrer'
                                href={global.window.mm_config.HelpLink}
                            >
                                <FormattedMessage id='web.footer.help'/>
                            </a>
                            <a
                                id='terms_link'
                                className='pull-right footer-link'
                                target='_blank'
                                rel='noopener noreferrer'
                                href={global.window.mm_config.TermsOfServiceLink}
                            >
                                <FormattedMessage id='web.footer.terms'/>
                            </a>
                            <a
                                id='privacy_link'
                                className='pull-right footer-link'
                                target='_blank'
                                rel='noopener noreferrer'
                                href={global.window.mm_config.PrivacyPolicyLink}
                            >
                                <FormattedMessage id='web.footer.privacy'/>
                            </a>
                            <a
                                id='about_link'
                                className='pull-right footer-link'
                                target='_blank'
                                rel='noopener noreferrer'
                                href={global.window.mm_config.AboutLink}
                            >
                                <FormattedMessage id='web.footer.about'/>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}

NotLoggedIn.defaultProps = {
};

NotLoggedIn.propTypes = {
    children: React.PropTypes.object
};