{% extends 'base.html' %} {% block title %}Журнал - Python Trainer{% endblock %} {% block content %}
| Ученик | {% for task in all_tasks %}{% if task.task_type == 'quiz' %} {% endif %} {{ task.title[:15] }}{% if task.title|length > 15 %}...{% endif %} | {% endfor %}
|---|---|
| {{ student.name }} | {% for task in all_tasks %} {% set p = progress_matrix[student.id][task.id] %}{% 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 %} | {% endfor %}