{% extends 'base_course.html' %} {% block subtitle %} {# I18N: Title of the webpage. #} - {{ gettext('Assessment') }} {% endblock subtitle %} {% block top_content %} {% endblock %} {% block main_content %} {% if is_read_write_course and is_course_admin %} Edit assessment {% endif %} {% if model_version == '1.5' %} {% import 'assessment_html_content.html' as html_assessment %} {% endif %}
{% if assessment_script_src %} {% endif %} {% if grader == 'human' %}

{% if due_date_exceeded %} {# I18N: Text shown to students when they visit an assignment page for which the due date has passed. #} {{ gettext('The due date for submitting this assignment has passed. It was due on %(submission_due_date)s.', submission_due_date=submission_due_date) }} {% else %} {# I18N: Shown to the student on the assignment page. #} {{ gettext('Due date for this assignment: ') }} {{ submission_due_date }}. {% endif %}

{% if matcher == 'peer' %}

{# I18N: Instructions to the student for a peer-reviewed assignment. #} {{ gettext('You may only submit this assignment once. After you submit it, the assignment will become read-only, and you will not be able to modify your answers. The answers you submit here will be reviewed by your peers.')}}

{% endif %}
{% endif %} {% if model_version == '1.4' %} {% import 'readonly_assessment.html' as readonly_assessment %} {% endif %} {% if readonly_student_assessment is defined %} {# I18N: Header text for a previously-submitted assignment. #}

{{ gettext('Submitted assignment') }}

{% if model_version == '1.4' %} {{ readonly_assessment.display(readonly_student_assessment) }} {% elif model_version == '1.5' %} {{ html_assessment.render( unit_id, assessment_xsrf_token, html_saved_answers, html_content, readonly=True) }} {% endif %}
{% if reviews_received is defined or not due_date_exceeded %} {# I18N: Header text for the list of reviews received for an assignment. #}

{{ gettext('Reviews received') }}

{% endif %} {% if reviews_received is not defined %} {% if not due_date_exceeded %} {# I18N: Text shown below a student's peer-reviewed assignment. #} {{ gettext('After you have completed the required number of peer reviews for this assignment, the reviews you have received will appear here.') }}

{# I18N: Text shown on a button that allows the student to navigate from an assignment submission page to the peer review dashboard for that assignment. #} {{ gettext('Go to the review dashboard') }} {% endif %} {% elif not reviews_received %} {# I18N: Text shown below a student's peer-reviewed assignment. #} {{ gettext('You have not received any peer reviews yet.') }} {% else %} {% for review in reviews_received %}

Review {{ loop.index }}

{% if model_version == '1.4' %} {{ readonly_assessment.display(review) }} {% elif model_version == '1.5' %} {{ html_assessment.render(unit_id, assessment_xsrf_token, review['saved_answers'], review['content'], readonly=True) }} {% endif %}
{% endfor %} {% endif %} {% endif %}
{% if model_version == '1.5' and not readonly_student_assessment %} {{ html_assessment.render( unit_id, assessment_xsrf_token, html_saved_answers, html_content, check_answers=html_check_answers) }} {% endif %}
{% endblock %}