summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_header.jsx
blob: 129db6d14d767c4cf2873f44474f66db7e851070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.

var UserProfile = require( './user_profile.jsx' );
var PostInfo = require('./post_info.jsx');

module.exports = React.createClass({
    getInitialState: function() {
        return {  };
    },
    render: function() {
        var post = this.props.post;

        return (
            <ul className="post-header post-header-post">
                <li className="post-header-col post-header__name"><strong><UserProfile userId={post.user_id} /></strong></li>
                <li className="post-info--hidden">
                    <PostInfo post={post} commentCount={this.props.commentCount} handleCommentClick={this.props.handleCommentClick} allowReply="true" isLastComment={this.props.isLastComment} />
                </li>
            </ul>
        );
    }
});