     copy: (type, assignment_id, student_id) ->
         @props.flux.getActions(@props.name).copy_assignment(type, assignment_id, student_id)
 
-    render_last: (name, obj, type, info) ->
+    render_last: (name, obj, type, info, enable_copy) ->
         open = => @open(type, info.assignment_id, info.student_id)
         copy = => @copy(type, info.assignment_id, info.student_id)
         v = [<span key='name'>{name+': '}</span>]

###
TODO:

- [x] (0:30?) (0:09) create function to render course in a DOM element with basic rendering; hook into editor.coffee
- [x] (0:30?) (0:36) create proper 4-tab pages using http://react-bootstrap.github.io/components.html#tabs
- [x] (0:45?) (1:35) create dynamically created store attached to a project_id and course filename, which updates on sync of file.

        @props.flux.getActions(@props.name).copy_assignment_from_all_students(@props.assignment)

    render_collect_button: ->
        # disable the button if nothing ever assigned
        <Button onClick={@collect_assignment} disabled={(@props.assignment.get('last_assignment')?.size ? 0) == 0}>
            <Icon name="share-square-o" rotate="180" /> Collect from all...
        </Button>

    return_assignment: ->
        # Assign assignment to all (non-deleted) students.
        @props.flux.getActions(@props.name).return_assignment_to_all_students(@props.assignment)

    render_return_button: ->
        # Disable the button if nothing ever collected.
        <Button onClick={@return_assignment} disabled={(@props.assignment.get('last_collect')?.size ? 0) == 0}>
            <Icon name="share-square-o" /> Return to all...
        </Button>

