{% extends "course/base.html" %} {% block two_col_media %} {% endblock %} {% block js_media %} {% endblock %} {% block middle_content %}

{{content_title}}

{% set lesson_problems = lesson.lesson_problems.order_by('order') %} {{_("Sort by")}}: {% if grades|length > 0 %} {% for lesson_problem in lesson_problems %} {% endfor %} {% endif %} {% for student, grade in grades.items() %} {% for lesson_problem in lesson_problems %} {% set val = grade.get(lesson_problem.problem.id) %} {% endfor %} {% endfor %}
{{_('Student')}} {{ lesson_problem.problem.name }}
{{lesson_problem.score}}
{{_('Total')}}
{{link_user(student)}}
{{student.first_name}}
{% if val and val['case_total'] %} {{ (val['case_points'] / val['case_total'] * lesson_problem.score) | floatformat(0) }} {% else %} 0 {% endif %} {{ grade['total']['percentage'] | floatformat(0) }}%
{% endblock %}