{% set title = '' %} {% set subtitle = '作业' %} {% from '_macro/submission.html' import submission_status %} {% extends "layout.html" %} {% block container %}
排名 | 用户 | {% if current_user.has_manage_authority %}真实姓名 | {% endif %}分数 | 通过题数 | {% for problem in homework.problem_list %}{{ chr(64 + loop.index) }} | {% endfor %}
---|---|---|---|---|---|
{{ statistic.rank }} | {{ statistic.user.id }} | {% if current_user.has_manage_authority %}{{ statistic.user.realname }} | {% endif %}{{ round(statistic.score * 100) }} | {{ statistic.accepted }} | {% for problem in homework.problem_list %}{% set submission = statistic.submission[loop.index - 1] %} {% if submission is not none %} {{ submission_status(submission.status, '%d / %d' % (submission.passed_count, len(submission.details))) }} {% endif %} | {% endfor %}