$def with (course,data,errors) $# $# 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='tasks') $ is_admin = user_manager.has_admin_rights_on_course(course) $def NavbarF(): $var Navbar: $:NavbarF()

$:_("Tasks")

$for taskid in data:
$:_("task name") $:_("# student viewed") $:_("# student attempted") $:_("# student succeeded") $:_("# attempts")
$data[taskid]["name"] $data[taskid]["viewed"] $data[taskid]["attempted"] $data[taskid]["succeeded"] $data[taskid]["attempts"]
$if is_admin: $if is_admin:
$:_("Create new task")
$if len(errors) != 0:

$:_("Errors while loading tasks")

$for task in errors:
$:_("task id") $:_("error")
$task['taskid']
$task['error']