{% 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', class="edit-mode-hide") }} {% else %} {% endif %} {% endif %} {%- endfor -%}
{{ _('ID') }}{{ _('Status') }}{{ _('Problem') }}{{ _('Hide tags') }} {{ _('Tried') }} {{ _('AC') }} {{ _('Difficulty') }}
{{ pdoc.docId }} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %}
{% endif %} {{ problem.render_problem_title(pdoc) }}
{{ pdoc.nSubmit }} {{ pdoc.nAccept }} {{ pdoc['difficulty'] or _('(None)') }}
{{ paginator.render(page, ppcount) }} {% endif %}