{% if not tdocs.length %} {{ nothing.render('Sorry, there are no training plans.') }} {% else %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {%- for tdoc in tdocs -%} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {%- endfor -%}
完成情况 训练计划名称 题目数量 参加人数
{% if tsdict[tdoc.docId]['enroll'] %} {% if not tsdict[tdoc.docId]['done'] %} {{ _('Completed') }} {{ (100 * tsdict[tdoc.docId]['donePids']|length / model.training.getPids(tdoc.dag)|length)|round|int }}% {% else %} {{ _('Completed') }} 100% {% endif %} {% elif handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {{ _('Not Enrolled') }} {% endif %} {{ tdoc.title }} {{ _('{0} sections').format(tdoc['dag']|length) }} / {{ _('{0} problems').format(model.training.getPids(tdoc.dag)|length) }} {{ tdoc.attend|default(0) }} {{ _('Enrolled') }}
{{ paginator.render(page, tpcount, add_qs=qs) }} {% endif %}