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

{{content_title}}

{{_("Sort by")}}:
{% for lesson in lessons %} {% endfor %} {% for course_contest in course_contests %} {% endfor %} {% for student in grade_total.keys() %} {% set grade_lessons_student = grade_lessons.get(student) %} {% set grade_contests_student = grade_contests.get(student) %} {% set grade_total_student = grade_total.get(student) %} {% for lesson in lessons %} {% set val = grade_lessons_student.get(lesson.id) %} {% endfor %} {% for course_contest in course_contests %} {% set val = grade_contests_student.get(course_contest.id) %} {% endfor %} {% endfor %}
{{_('Student')}} {{_('Total')}} L{{ loop.index0 + 1 }}
{{lesson.points}}
C{{ loop.index0 + 1 }}
{{course_contest.points}}
{{link_user(student)}}
{{student.first_name}}
{% if grade_total_student %} {{ grade_total_student['percentage'] | floatformat(0) }}% {% else %} 0 {% endif %} {% if val and val['total_points'] %} {{ (val['achieved_points'] / val['total_points'] * lesson.points) | floatformat(0) }} {% else %} 0 {% endif %} {% if val and val['total_points'] %} {{ (val['achieved_points'] / val['total_points'] * course_contest.points) | floatformat(0) }} {% else %} 0 {% endif %}
{% endblock %}