 
 module?.exports = React.createClass
   displayName: 'TalkLatestCommentComment'
+  mixins: [History]
 
   propTypes:
     project: React.PropTypes.object

    latestCommentText = @refs?.markdownText?.textContent
    @setState({latestCommentText}) if latestCommentText

  discussionLink: (childtext, className = '') ->
    if @props.params?.owner and @props.params?.name
      {owner, name} = @props.params
      <Link className={className} to="/projects/#{owner}/#{name}/talk/#{@props.discussion.board_id}/#{@props.discussion.id}">
        {childtext}
      </Link>
    else
      <Link className={className} to="/talk/#{@props.discussion.board_id}/#{@props.discussion.id}">
        {childtext}
      </Link>



        <span>
          {if discussion.title and @props.title
            @discussionLink(discussion.title, linkQuery)}{' '}
        </span>

        {@discussionLink(timeAgo(comment.created_at), linkQuery, "latest-comment-time")}

        {if @props.preview
          @discussionLink(" #{truncate(@state.latestCommentText, '...')}", linkQuery, "latest-comment-preview-link")}

      </div>
    </div>
