$def with (course,task,individual_data,aggregation_data) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $var title: $:task.get_name(user_manager.session_language()) - $:course.get_name(user_manager.session_language()) $var Column: $:template_helper.call('course_admin_menu',course=course,current='tasks') $ use_classrooms = course.use_classrooms() $ is_admin = user_manager.has_admin_rights_on_course(course) $def NavbarF(): $var Navbar: $:NavbarF()

$:_("Results for task \"{}\"").format(task.get_name(user_manager.session_language()))

$if not course.is_lti():
$for user in individual_data:
$:_("Student") $:_("Status") $:_("# submissions")
$if is_admin:
$if user["realname"] != "": $user["realname"] ($user["username"] - email) $else: $user["username"] $if user["status"] == "notviewed": $:_("Not viewed") $elif user["status"] == "notattempted": $:_("Not attempted (viewed)") $elif user["status"] == "succeeded": $:_("Succeeded") ($user["grade"]%) $else: $:_("Failed") ($user["grade"]%) $user["tried"]
$if is_admin:
$if not course.is_lti():
$ text = [_("My classroom(s)"),_("Other classroom(s)")] if use_classrooms else [_("My team(s)"),_("Other team(s)")] $for ind in range(0,2): $if len(aggregation_data[ind]) > 0: $if len(aggregation_data[0]) > 0 and len(aggregation_data[1]) > 0: $for aggregation in aggregation_data[ind]: $if course.use_classrooms() or len(aggregation['groups']) > 0:
$(_("Classroom") if use_classrooms else _("Team")) $:_("Status") $:_("# submissions")
$if is_admin:
$text[ind]
$aggregation['description'] $if aggregation["status"] == "notviewed": $:_("Not viewed") $elif aggregation["status"] == "notattempted": $:_("Not attempted (viewed)") $elif aggregation["status"] == "succeeded": $:_("Succeeded") ($aggregation["grade"]%) $else: $:_("Failed") ($aggregation["grade"]%) $aggregation["tried"]
$if is_admin: