$def with (course,username,task,submissionid,submission,to_display) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $ user_realname= user_manager.get_user_realname(username) $var title: $:task.get_name() - $:user_realname - $:course.get_name() $ is_admin = user_manager.has_admin_rights_on_course(course) $var Column: $:template_helper.call('course_admin_menu',course=course,current='students') $def NavbarF(): $var Navbar: $:NavbarF()

Submission $submissionid[0:10] - "$:task.get_name()" - $user_realname ($username)

This page show what was shown to the student when (s)he made his/her submission.
$if "result" in submission: $if is_admin:
$if is_admin:
$:task.get_context()
$if submission["status"] == "waiting": $ color="warning" $elif "result" not in submission: $ color="danger" $elif submission["result"] == "success": $ color="success" $elif submission["result"] in ["timeout", "overflow"]: $ color="warning" $else: $ color="danger"
$if submission["status"] == "waiting": Grading in progress, reload the page to refresh status. $elif "result" not in submission: $if submission["text"]: $:submission["text"] $else: Result: $submission["result"]
Grade: $submission["grade"] % $if submission["text"]:

$:submission["text"]
$for key, problem in enumerate(to_display):

$if not problem["defined"]: This problem id is not defined in the task. $if not problem["present"]: This problem is not present in the submission. Question ${key+1}: $problem["name"] $if problem['base64'] is not None:

$if problem["feedback"] is not None: $if problem["feedback"][0] == "success": $ color="success" $elif problem["feedback"][0] in ["timeout", "overflow"]: $ color="warning" $else: $ color="danger"
$:problem["feedback"][1]
$:problem["context"]
$if problem["content"] is not None: $elif not problem["present"]: This problem was not answered in this submission. $elif problem["mime"] == "application/pdf": $else: There is input, but it can't be read as an UTF-8 file.