$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='classrooms') $def NavbarF(): $var Navbar: $:NavbarF()

Classrooms

$if error: $elif msg: $ text = ["My classroom(s)","Other classroom(s)"] $for ind in range(0,2): $if len(data[ind]) > 0: $if len(data[0]) > 0 and len(data[1]) > 0: $for classroom in data[ind]:
Classroom # students # task tried # task done
$text[ind]
$classroom["description"] $len(classroom["students"]) $classroom["tried"] $classroom["done"]