     </BS.Panel>
 
   onClick: ->
-    {id} = @props.model
+    {id} = @props
     @transitionTo('viewTask', {courseId, id})
 
 

        <div className='ui-task-list ui-empty'>No Tasks</div>
      else
        tasks = for task in allTasks
          <TaskResult model={task} />

        <div className='ui-task-list'>
          <h3>Current Tasks ({allTasks.length})</h3>

TaskResult = React.createClass
  mixins: [Router.Navigation]
  render: ->
    {id} = @props
    task = TaskStore.get(id)
    steps = TaskStore.getSteps(id)

    actionTitle = 'Work Now'
    title = task.title or err('BUG: Task without a title')

    if steps.length is 1
      mainType = steps[0].type
    else
      mainType = ''
      stepsInfo = <small className='details'>({steps.length} steps)</small>

    <BS.Panel bsStyle="default" onClick={@onClick}>
      <Router.Link to="viewTask" params={{courseId, id}}><i className="fa fa-fw #{mainType}"></i> {title}</Router.Link>
