             return misc.cmp_array([a.last_name, a.first_name, a.email_address],
                                   [b.last_name, b.first_name, b.email_address])
         for x in v
-            <Student key={x.student_id} student={@props.students.get(x.student_id)} />
+            <Student key={x.student_id} student={@props.students.get(x.student_id)} user_map={@props.user_map} />
 
     render :->
         <Panel header={@render_header()}>

            <TabbedArea defaultActiveKey={'students'} animation={false}>
                <TabPane eventKey={'students'} tab={<span><Icon name="users"/> Students</span>}>
                    <Students flux={@props.flux} students={@props.students}
                              name={@props.name} project_id={@props.project_id} />
                </TabPane>
                <TabPane eventKey={'assignments'} tab={<span><Icon name="share-square-o"/> Assignments</span>}>
                    <Assignments flux={@props.flux} assignments={@props.assignments} name={@props.name} />


Student = rclass
    propTypes:
        student  : rtypes.object.isRequired
        user_map : rtypes.object.isRequired

    displayName : "CourseEditorStudent"

    render_student: ->
        console.log(@props.student.toJS())
        account_id = @props.student.get('account_id')
        if account_id?
            <User account_id={account_id} user_map={@props.user_map} />
        else # TODO: maybe say something about invite status...?
            <div>
                {@props.student.get("email_address")}
            </div>

    render_project: ->
        project_id = @props.student.get('project_id')
        if project_id?
            <Button onClick={@open_project}>
                <Icon name="edit" /> Open project
            </Button>
        else
            <Button onClick={@create_project}>
                <Icon name="plus-circle" /> Create project
            </Button>

    render_delete_button: ->
        <Button onClick={@delete_student}>
            <Icon name="trash" /> Delete
        </Button>

    render: ->
        <Row>
            <Col md=4>
                {@render_student()}
            </Col>
            <Col md=4>
                {@render_project()}
            </Col>
            <Col md=4>
                {@render_delete_button()}
            </Col>
        </Row>

Students = rclass
    propTypes:
