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

$("Classroom" if use_classrooms else "Team")s
$if not course.use_classrooms(): Edit teams Download structure

$if error: $elif msg: $ 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(data[ind]) > 0: $if len(data[0]) > 0 and len(data[1]) > 0: $for aggregation in data[ind]: $if course.use_classrooms() or len(aggregation['groups']) > 0:
$("Classroom" if use_classrooms else "Team") # students # task tried # task done
$text[ind]
$aggregation["description"] $(len(aggregation["students"]) if course.use_classrooms() else len(aggregation["groups"][0]["students"])) $aggregation["tried"] $aggregation["done"]
$if course.use_classrooms(): $if is_admin:
$if course.use_classrooms():