{% extends 'base.html' %} {% block title %}Журнал - Python Trainer{% endblock %} {% block content %}

Журнал

{% if selected_class and lessons %}
{% endif %}
{% if selected_class %} {% if not lessons %}
Этому классу не назначены уроки.
{% elif not selected_lesson_id %}
Выберите урок для просмотра прогресса учеников.
{% elif not students %}
В классе нет учеников.
{% elif all_tasks %}
{% for task in all_tasks %} {% endfor %} {% for student in students %} {% for task in all_tasks %} {% set p = progress_matrix[student.id][task.id] %} {% endfor %} {% endfor %}
Ученик {% if task.task_type == 'quiz' %} {% endif %} {{ task.title[:15] }}{% if task.title|length > 15 %}...{% endif %}
{{ student.name }} {% if p.quiz is defined %} {% set q = p.quiz %} {% if q.pending == 0 and q.errors == 0 %} {{ q.clean }}/{{ q.total }} {% elif q.pending == 0 %} {{ q.clean }}/{{ q.errors }}/{{ q.total }} {% elif q.clean == 0 and q.errors == 0 %} {% else %} {{ q.clean }}/{{ q.errors }}/{{ q.pending }}? {% endif %} {% elif p.completed and not p.has_errors %} {% if p.has_pastes and p.has_leaves %}{% elif p.has_pastes and p.has_copies %}{% endif %} {% elif p.completed and p.has_errors %} {% if p.has_pastes and p.has_leaves %}{% elif p.has_pastes and p.has_copies %}{% endif %} {% else %} {% endif %}
Выполнено: {{ stats.completed }} С ошибками: {{ stats.errors }} Не выполнено: {{ stats.not_done }} | Уходил + вставки Копирование + вставки | Тесты: верно / с ош. / всего
{% else %}
В этом уроке нет заданий.
{% endif %} {% else %}
Выберите класс для просмотра журнала.
{% endif %} {% endblock %} {% block scripts %} {% endblock %}