$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(user_manager.session_language()) $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()

$(_("Classrooms") if use_classrooms else _("Teams"))
$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():
$ placeholder = _('New classroom description') $ btn = _("New classroom")