{% extends "devilry_examiner/base.django.html" %} {% comment %} This is the base template for the singledelivery view in devilry_examiner, and the base template for ANY grading system plugin. Child templates should override the ``pagecontent`` block. The base template for grading plugins should override ``title`` and add a prefix/suffix to distinguish editing from viewing. Expected template variables =========================== delivery A devilry.apps.core.models.Delivery object. valid_grading_system_setup Is the grading system configured in a way that makes giving feedback possible? {% endcomment %} {% load url from future %} {% load i18n %} {% load static %} {% load devilry_examiner_tags %} {% block title %} {{ delivery.deadline.assignment_group.short_displayname }} #{{ delivery.number }} - {{ delivery.deadline.assignment_group.assignment.get_path }} {% endblock %} {% block body %}
{% block alerts %} {% if not valid_grading_system_setup %}
{% trans "Error" %}: {% trans "You can not provide feedback for this assignment because the course admin(s) have not configured the grading system correctly. If a course admin visits this assignment using the course admin role, they will get a message with instructions for how to fix this." %}
{% endif %}
{% if delivery.after_deadline %}
{% blocktrans with timesincedeadline=delivery.deadline.deadline|timesince:delivery.time_of_delivery %}This delivery was added {{ timesincedeadline }} after the deadline.{% endblocktrans %} {% if delivery.deadline.successful_delivery_count > 1 %} {% trans "The group has made at least one more delivery for this deadline." %} {% trans "Browse other deliveries" %}. {% else %} {% trans "The group has no other deliveries for this deadline." %} {% endif %}
{% endif %} {% if not delivery.is_last_delivery %}
{% trans "This delivery is not the last delivery made by this group on this assignment." %} {% trans "Browse other deliveries" %}.
{% endif %} {% if delivery.is_last_delivery and delivery.deadline != delivery.assignment_group.last_deadline %}
{% trans "This is the last delivery made by this group, but it was NOT added to their last deadline." %} {% trans "Browse all deliveries made by the group" %}.
{% endif %}
{% endblock alerts %} {% with filemetacount=delivery.filemetas.count %} {% if filemetacount > 0 %}
{% if filemetacount == 1 %} {% for filemeta in delivery.filemetas.all %} {{ filemeta.filename }} {% endfor %} {% else %} {% trans "Download files" %} {% spaceless %} {% endspaceless %} {% endif %}
{% endif %} {% endwith %}
{% block pagecontent %}{% endblock pagecontent %} {% endblock %}