var React = require('react') var moment = require('moment') var Markdown = require('markdown.jsx') var Icon = require('icon.jsx') module.exports = function(boards){ var UserID = require('userID.jsx')(boards) return React.createClass({ getDate: function(){ if(this.props.post.date){ return moment.unix(this.props.post.date).fromNow() } else { return 'Unknown Date' } }, render: function(){ return
{this.props.post.title}


{this.getDate()} Comments
} }) }