{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% extends "layout.html" %} {% block title %}{{ _("Submissions") }}{% endblock %} {% block column %} {{ template_helper.call('course_admin_menu',course=course,current='submissions') | safe }} {% endblock %} {% block navbar %} {% endblock %} {% block content %} {% set is_admin = user_manager.has_admin_rights_on_course(course) %}
{{sub_count}} {{_("submissions selected")}}
{% if "show_stud_name" in old_params %} {{ _("student name") }} {% else %} {{ _("username") }} {% endif %} | {% if "show_task_name" in old_params %} {{ _("task name")}} {% else %} {{ _("taskid") }} {% endif %} | {% if "show_id" in old_params %}{{ _("id") }} | {% endif %}{{ _("submitted on") }} | {{ _("replayed on") }} | {{ _("result") }} | {% if "show_tags" in old_params %}{{ _("tags") }} | {% endif %}|||
---|---|---|---|---|---|---|---|---|---|
{% if "best" in submission and submission["best"] %} {% endif %} |
{% for user in submission["username"] %}
{% if "show_stud_name" in old_params %}
{{ users[user] if user in users else '?' }} {% else %} {{ user }} {% endif %} {% endfor %} |
{% if "show_task_name" in old_params %}
{{ tasks[submission["taskid"]].get_name(user_manager.session_language()) }} | {% else %}{{ submission["taskid"] }} | {% endif %} {% if "show_id" in old_params %}{{ submission["_id"] }} | {% endif %}{{ submission["submitted_on"].strftime("%d/%m/%Y %H:%M:%S") }} | {% if "last_replay" in submission %} {{submission["last_replay"].strftime("%d/%m/%Y %H:%M:%S") }} {% else %} - {% endif %} | {% if succeeded %} {{_("Succeeded")}} {%elif submission['status'] == 'waiting' %} {{_("Waiting")}} {% else %} {{_("Failed")}} {% endif %} ({{ submission.get("grade", 0.0) }}%) | {% if "show_tags" in old_params %}{% set course_tags = course.get_tags() %} {% for tag_submission in submission['tests'] %} {% if tag_submission in course_tags %} {% set tag = course_tags[tag_submission] %} {% if tag.get_type() == 0 %} {{ tag.get_name(user_manager.session_language()) }} {% elif tag.get_type() == 1 %} {{ tag.get_name(user_manager.session_language()) }} {% endif %} {% endif %} {% endfor %} {# Auto-tags not defined in task #} {% if "tests" in submission %} {% for tag in submission["tests"] %} {% if tag.startswith("*auto-tag-") %} {% if submission["tests"][tag] | length > 30 %} {{ submission["tests"][tag][:30] }} … {% else %} {{ submission["tests"][tag] }} {% endif %} {% endif %} {% endfor %} {% endif %} | {% endif %}