var BS, MESSAGES, React;
React = require('react');
BS = require('react-bootstrap');
MESSAGES = {
student: [
React.createElement("p", {
"key": 's1'
}, "The performance forecast is an estimate of your understanding of a topic."), React.createElement("p", {
"key": 's2'
}, "It is personalized display based on your answers to reading questions,\nhomework problems, and previous practices.")
],
teacher: [
React.createElement("p", {
"key": 's1'
}, "The performance forecast is an estimate of each group\'s understanding of a topic."), React.createElement("p", {
"key": 's2'
}, "It is personalized display based on their answers to reading questions,\nhomework problems, and previous practices.")
],
teacher_student: [
React.createElement("p", {
"key": 'st1'
}, "The performance forecast is an estimate of each student\'s understanding of a topic."), React.createElement("p", {
"key": 'st2'
}, "It is personalized display based on their answers to reading questions,\nhomework problems, and previous practices.")
]
};
module.exports = React.createClass({
displayName: 'PerformanceForecastInfoLink',
type: React.PropTypes.oneOf(['student', 'teacher', 'teacher_student']).isRequired,
render: function() {
var tooltip;
tooltip = React.createElement(BS.Tooltip, {
"className": 'info-link-tooltip',
"html": 'true'
}, MESSAGES[this.props.type]);
return React.createElement(BS.OverlayTrigger, {
"placement": 'right',
"overlay": tooltip
}, React.createElement("span", {
"className": 'info-link'
}));
}
});
|