var _ = require('lodash')
var React = require('react')
var humanize = require('humanize-plus')

var DraggableMixin = require('../mixins/draggable')

var Course = React.createClass({
	render: function() {
		return React.DOM.article({className: 'course'},
			React.DOM.h1({className: 'title'}, this.props.info.title),
			React.DOM.span({className: 'details'},
				React.DOM.span({className: 'identifier'}, 
					React.DOM.span({className: 'department'}, this.props.info.depts.join('/')),
					' ',
					React.DOM.span({className: 'number'}, this.props.info.num),
					this.props.info.sect ? React.DOM.span({className: 'section'}, this.props.info.sect) : ''
				),
				React.DOM.span({className: 'professors'}, humanize.oxford(this.props.info.profs))
			)
		)
	}
})

module.exports = Course

@@ -396,17 +396,16 @@
 ifier'%7D,
- 
 %0A%09%09%09%09%09Re

Remove an end-of-line space