{% extends "layout/basic.html" %} {% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} {% block content %}

{{ _('Homework Introduction') }}

{{ tdoc['content']|markdown }}

{{ _('Problem') }}

{% if handler.is_not_started(tdoc) %} {{ nothing.render('This homework is not open and you cannot view problems.') }} {% else %} {% if attended or handler.is_done(tdoc) %}
{% if handler.has_perm(perm.PERM_LOGGEDIN) %} {% endif %} {% if handler.has_perm(perm.PERM_LOGGEDIN) %} {% endif %} {% for pid in tdoc['pids'] %} {% if handler.has_perm(perm.PERM_LOGGEDIN) %} {% if psdict[pid] and psdict[pid]['rid'] %} {% with rdoc=rdict[psdict[pid]['rid']] %} {% if handler.can_show_record(tdoc) %} {{ record.render_status_td(rdoc) }} {% else %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %}
{{ _('Status') }} {{ _('Last Submit At') }}{{ _('Problem') }}
{{ _('Submitted') }}{{ datetime_span(rdoc['_id'].generationTime) }}{{ _('No Submissions') }} - #{{ loop.index }}: {{ problem.render_problem_title(pdict[pid], tdoc=tdoc, show_invisible_flag=false, show_tags=false) }}
{% else %} {{ nothing.render('Please claim the assignment to see the problems.') }} {% endif %}{# attended or handler.is_done(tdoc) #} {% endif %}{# handler.is_not_started(tdoc) #}
{% include "partials/homework_sidebar.html" %}
{% endblock %}