{# 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) %}

{{_("Submissions")}}

{% with target="submissions#alerts", is_stats=False %} {% include "course_admin/submissions_query.html" %} {% endwith %}
{% for msg in msgs %} {% endfor %}

{{sub_count}} {{_("submissions selected")}}

{% if "show_id" in old_params %} {% endif %} {% if "show_tags" in old_params %} {% endif %} {% for submission in data %} {% set succeeded = "result" in submission and submission["result"] == "success" %} {% if "show_task_name" in old_params %} {% else %} {% endif %} {% if "show_id" in old_params %} {% endif %} {% if "show_tags" in old_params %} {% endif %} {% endfor %}
{% if "show_stud_name" in old_params %} {{ _("student name") }} {% else %} {{ _("username") }} {% endif %} {% if "show_task_name" in old_params %} {{ _("task name")}} {% else %} {{ _("taskid") }} {% endif %} {{ _("id") }}{{ _("submitted on") }} {{ _("replayed on") }} {{ _("result") }}{{ _("tags") }}
{% if is_admin %} {% 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 %}
{{ tasks[submission["taskid"]].get_name(user_manager.session_language()) }}{{ submission["taskid"] }}{{ submission["_id"] }}{{ 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) }}%) {% 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 %}
{% if is_admin %} {% endif %}
{% if is_admin %} {%endif %} {% endblock %}