Repository URL to install this package:
|
Version:
5.17.0 ▾
|
## mako
<%! from django.utils.translation import ugettext as _ %>
<%! from course_dashboard.problem_stats.utils import percentage %>
<%inherit file="base.html" />
<%block name="answers_distribution">
<style>
.single-choice-question-table td {
padding : 10px;
}
.single-choice-question-table {
margin : 10px;
}
#content .correct_answer {
color : green;
}
</style>
<table class='table-bordered single-choice-question-table'>
% for answer, count in student_answers.iteritems():
<tr>
<td ${'class="correct_answer"' if answer == right_answer else ''}>
${answer}
</td>
<td>${count}</td>
<td> ${percentage(count, total_answers)}%</td>
</tr>
% endfor
<tr>
<td>${_("Blank answers")}</td>
<td> ${blank_answers}</td>
<td>${percentage(blank_answers, total_answers)}% </td>
</tr>
<tr>
<td>${_("Total")}</td>
<td> ${total_answers}</td>
<td>100%</td>
</tr>
</table>
</%block>