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

{{content_title}}

{% set lessons = course.lessons.order_by('order') %} {{_("Sort by")}}: {% if grades|length > 0 %} {% for lesson in lessons %} {% endfor %} {% endif %} {% for student, grade in grades.items() %} {% for lesson in lessons %} {% set val = grade.get(lesson.id) %} {% endfor %} {% endfor %}
{{_('Student')}} {{ lesson.title }}
{{lesson.points}}
{{_('Total')}}
{{link_user(student)}}
{{student.first_name}}
{% if val and val['total_points'] %} {{ (val['achieved_points'] / val['total_points'] * lesson.points) | floatformat(0) }} {% else %} 0 {% endif %} {{ grade['total']['percentage'] | floatformat(0) }}%
{% endblock %}