{% 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.length %} {{ nothing.render('Sorry, there is no problem in the problem set') }} {% else %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {%- for pdoc in pdocs -%} {% set psdoc = psdict[pdoc['docId']] %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% if psdoc['rid'] %} {{ record.render_status_td(psdoc, rid_key='rid') }} {% else %} {% endif %} {% endif %} {%- endfor -%}
{{ _('Status') }}{{ _('Problem') }} {{ _('Submit') }} % {{ _('AC') }} {{ _('Difficulty') }}
{{ problem.render_problem_title(pdoc) }} {{ pdoc['nSubmit'] }} {{ (100 * pdoc['nAccept'] / pdoc['nSubmit'])|round|int if pdoc['nSubmit'] > 0 else _('?') }} {{ pdoc['difficulty'] or _('(None)') }}
{{ paginator.render(page, ppcount) }} {% endif %}