support-foo/web

View on GitHub
app/assets/javascripts/components/assignment_event.js.jsx

Summary

Maintainability
A
0 mins
Test Coverage
/** @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} />
        &nbsp;assigned this to&nbsp;
        <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);
  }
});