{% import "components/problem.html" as problem with context %} {% import "components/record.html" as record with context %} {% import "partials/disable_sol_controls.html" as solctl with context %} {% import "partials/course_visibility_toggle.html" as vis with context %} {% extends "layout/basic.html" %} {% block content %} {% include "course_ui_style.html" %} {{ solctl.style() }} {{ vis.style() }} {{ set(UiContext, 'ssid', ssdoc.docId) }}
{{ ssdoc.content|default('')|markdown|safe }}

{{ _('Problems') }}

{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {%- for pid in pids -%} {% if pid in pdict %} {% set pdoc=pdict[pid] %} {% set psdoc=psdict[pid] %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% if psdoc['rid'] %} {{ record.render_status_td(psdoc, rid_key='rid', short=should_compare) }} {% else %} {% endif %} {% endif %} {% else %} {% set pdoc = {'_id': pid, 'hidden': true, 'title': '*'} %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% endif %} {%- endfor -%}
{{ _('Status') }}{{ _('Problem') }} {{ _('Tried') }} {{ _('AC') }} {{ _('Difficulty') }}
{{ problem.render_problem_title( pdoc, show_tags=false ) }} {{ pdoc.nSubmit }} {{ pdoc.nAccept }} {{ pdoc['difficulty'] or lib.difficulty(pdoc.nSubmit, pdoc.nAccept) or _('(None)') }}
{{ problem.render_problem_title(pdoc, invalid=true) }} * * *

{{ _('Scoreboard') }}

{{ _('Course') }}
{{ cdoc.title }}
{{ _('Sections') }}
{{ csdoc.title }}
{{ _('Created By') }}
{{ user.render_inline(udoc, badge=false) }}
{% endblock %}