app/assets/javascripts/components/assignment_event.js.jsx
/** @jsx React.DOM */
var AssignmentEvent = React.createClass({
render: function() {
return (
<div className="event">
<div className="pull-right">{this.timestamp()}</div>
<Avatar person={this.props.user.person} size="20" />
<Person person={this.props.user.person} />
assigned this to
<Avatar person={this.props.assignee.person} size="20" />
<Person person={this.props.assignee.person} />
</div>
);
},
timestamp: function() {
return moment(this.props.created).format(CONSTANTS.dateFormat);
}
});