{% load i18n %} {% load devilry_examiner_tags %} {% load devilry_core_tags %} {% load humanize %} {% load url from future %}
{{ group.get_status|formatted_status }} {% if group.delivery_status == 'corrected' %} — {% trans "Grade" %}: {{ group.feedback.grade }} ({{ group.feedback.is_passing_grade|format_is_passing_grade }}) {% elif group.get_status == 'waiting-for-feedback' and group.assignment.is_electronic %} {% if group.last_delivery_id == None %} ({% trans "No deliveries" %}) {% else %} ({{ group.successful_delivery_count|formatted_delivery_count }}) {% endif %} {% elif group.get_status == 'waiting-for-deliveries' %} ({{ group.successful_delivery_count|formatted_delivery_count }}) – {% blocktrans with timeuntildeadline=group.last_deadline.deadline|timeuntil %}Next deadline in {{ timeuntildeadline }}{% endblocktrans %}) {% endif %}
{% trans "Draft" %}: {% if assignment.feedback_workflow_allows_shared_feedback_drafts %} {% if last_feedbackdraft.saved_by == request.user %} {% trans "By you" %}, {% else %} {{ last_feedbackdraft.saved_by|devilry_user_displayname }}, {% endif %} {% endif %} {{ last_feedbackdraft.save_timestamp|date:"SHORT_DATETIME_FORMAT" }}, {% with staticfeedback=last_feedbackdraft.to_staticfeedback %} {{ staticfeedback.grade }} {% endwith %} {% if last_feedbackdraft.feedbacktext_raw.strip %} - {{ last_feedbackdraft.feedbacktext_raw|devilry_escape_html|truncatechars:"40" }} {% endif %}
{% trans "Write feedback" %} ({% trans "to selected" %})