{% import "components/problem.html" as problem with context %} {% import "components/record.html" as record with context %} {% import "partials/course_visibility_toggle.html" as vis with context %} {% include "course_ui_style.html" %} {{ set(UiContext, 'ssid', ssdoc._id) }}

{{ ssdoc['title'] }}{{ vis.badge(ssdoc) }}

{% if ssdoc.content %}
{{ ssdoc.content|default('')|markdown|safe }}
{% endif %}

{{ _('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) }} * * *
{% set courseSubsectionResults = findSubModule('partials/course/subsection/detail/results/') %} {% if canEdit or courseSubsectionResults.length %}

{{ _('Scoreboard') }}

{% endif %}