 React  = require 'react'
 Router = require 'react-router'
+BS = require 'react-bootstrap'
 
 Time = require '../time'
 CellStatusMixin = require './cell-status-mixin'

  mixins: [CellStatusMixin] # prop validation

  render: ->
    pieValue = Math.round((@props.task.correct_exercise_count / @props.task.exercise_count) * 100)
    <div className="cc-cell">
      <Router.Link className="score" to='viewTaskStep'
        data-assignment-type="#{@props.task.type}"

            "#{pieValue}%"
        }
      </Router.Link>
      <BS.OverlayTrigger
        placement='top'
        delayShow={1000}
        delayHide={0}
        overlay={tooltip}>
        <div className="worked">
          <PieProgress size={25} value={pieValue} />
        </div>
      </BS.OverlayTrigger>
    </div>


