{% import "components/paginator.html" as paginator with context %} {% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} {% import "components/nothing.html" as nothing with context %}
{% if not pdocs %} {{ nothing.render('Sorry, there is no problem in the problem set') }} {% else %} {% if handler.has_priv(vj4.model.builtin.PRIV_USER_PROFILE) %} {% endif %} {% if handler.has_priv(vj4.model.builtin.PRIV_USER_PROFILE) %} {% endif %} {% for pdoc in pdocs %} {% with psdoc = psdict[pdoc['doc_id']] %} {% if handler.has_priv(vj4.model.builtin.PRIV_USER_PROFILE) %} {% if psdoc['rid'] %} {{ record.render_status_td(psdoc, rid_key='rid') }} {% else %} {% endif %} {% endif %} {% endwith %} {% endfor %}
{{ _('Status') }}{{ _('Problem') }} {{ _('Submit') }} % {{ _('AC') }} {{ _('Difficulty') }}
{% if handler.has_priv(vj4.model.builtin.PRIV_USER_PROFILE) %}
{% endif %} {{ problem.render_problem_title( pdoc, rp=vj4.job.rp.get_rp_expect(pdoc) if (not psdoc or psdoc['status'] != vj4.constant.record.STATUS_ACCEPTED) else none ) }}
{{ pdoc['num_submit'] }} {{ (100 * pdoc['num_accept'] / pdoc['num_submit'])|round|int if pdoc['num_submit'] > 0 else _('?') }} {{ pdoc['difficulty'] or _('(None)') }}
{{ paginator.render(page, ppcount) }} {% endif %}