{% if diagnosis.ok %}
Success

No problematic submissions found.

{% else %}

Submission Status

Inconsistent Missing
{{ diagnosis.inconsistent | length }} {{ diagnosis.missing | length }}
{% if diagnosis.inconsistent -%}

Inconsistent submissions

{% if config.weighted_mean.enabled %} {% set inconsistent_mode = "Base" %} {% else %} {% set inconsistent_mode = "Weighted Mean" %} {% endif %} {% for submission in diagnosis.inconsistent %} {% endfor %}
User Task ID Submission ID Active Grade
{{ submission._id }} {{ submission.submissionid}} {{ inconsistent_mode }}
{% endif %} {% if diagnosis.missing -%}

Submissions Missing Grades

{% set present = '' %} {% set missing = '' %} {% set omitted = namespace(omitted=0) %} {% for submission in diagnosis.missing %} {% if loop.index < 10 %} {# TODO: make a macro for determining icons #} {# Limit number of items displayed #} {% elif loop.index == 10 %} {% set omitted.omitted = loop.length - loop.index %} {% endif %} {% endfor %}
User Task ID Submission ID Active Grade Base Grade Mean Grade
{{ submission._id }} {{ submission.submissionid }}{% if submission.grade is not none %} {{ present | safe}} {% else %} {{ missing | safe }} {% endif %} {% if submission.grade_base %} {{ present | safe}} {% else %} {{ missing | safe }} {% endif %} {% if submission.grade_mean %} {{ present | safe}} {% else %} {{ missing | safe }} {% endif %}
{% if omitted.omitted > 0 -%} {{ omitted.omitted }} items omitted. {% endif %} {% endif %} {% endif %}