reply button

This commit is contained in:
Julian Steinwachs 2015-08-16 16:19:24 +02:00
parent aa7e3bba10
commit be7899b849

View File

@ -108,6 +108,16 @@ module.exports = Post = React.createClass({
} else { } else {
var replyLink = (<span/>); var replyLink = (<span/>);
} }
var retwistLink = <OverlayTrigger placement='left' overlay={
<Tooltip>Retwist</Tooltip>
}>
<small>
<RetwistModalButton retwistUsername={post.getUsername()} retwistPostId={post.getId()} activeAccount={this.props.activeAccount} originalMsg={post.getContent()} retwistUserFullname={this.state.fullname}/>
</small>
</OverlayTrigger>
return ( return (
<ListGroupItem> <ListGroupItem>
@ -128,11 +138,14 @@ module.exports = Post = React.createClass({
{retwist && <small><em> &nbsp;retwisted by {this.state.retwistingUser}</em></small> {retwist && <small><em> &nbsp;retwisted by {this.state.retwistingUser}</em></small>
} }
</Col> </Col>
<Col xs={5} md={5} className="fullytight text-align-right"> <Col xs={4} md={4} className="fullytight text-align-right">
{conversationLink}
</Col>
<Col xs={1} md={1} className="fullytight text-align-right">
{replyLink} {replyLink}
</Col> </Col>
<Col xs={1} md={1} className="fullytight text-align-right"> <Col xs={1} md={1} className="fullytight text-align-right">
{conversationLink} {retwistLink}
</Col> </Col>
</Row> </Row>