$def with (course,submissions) $# $# 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() $# Left column content $def ColumnF(): $:template_helper.call('course_menu', course=course, template_helper=template_helper)

Current grade

$ grade=user_manager.get_course_grade(course)
$int(grade)%

Last tried exercises

$if submissions: $for submission in submissions: $submission['task'].get_name() $else: No submissions
$if user_manager.has_staff_rights_on_course(course): $if not course.is_open_to_non_staff():
  Course administration
$else:
  Classroom : $user_manager.get_course_user_classroom(course)["description"]   Unregister from this course
$var Column: $:ColumnF() $def NavbarF(): $var Navbar: $:NavbarF() $# Start content

$course.get_name() - List of exercises

$for taskid, task in course.get_tasks().iteritems() $if user_manager.task_is_visible_by_user(task): $ status=user_manager.get_task_status(task) $ completion=user_manager.get_task_grade(task)
$if status == "succeeded": $task.get_name() $if not task.is_visible_by_students(): - (task hidden to students) $if not task.get_accessible_time().is_open(): - deadline reached
$int(completion)%