$def with (course,submissions, tasks, tasks_data, grade) $# $# 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

$int(grade)%

Last tried exercises

$if submissions: $for submission in submissions: $submission['taskname'] $else: No submissions
$if user_manager.has_staff_rights_on_course(course): $if not course.is_open_to_non_staff():
  Course administration
$else:
  $ myaggregation = user_manager.get_course_user_aggregation(course) $if course.use_classrooms(): Classroom : $myaggregation["description"] $elif len(myaggregation['groups']) > 0 and user_manager.session_username() in myaggregation['groups'][0]['students']: Team : $myaggregation['description'] $else: Teams management $if course.allow_unregister(): $:include.unregister_button(course)
$var Column: $:ColumnF() $def NavbarF(): $var Navbar: $:NavbarF() $# Start content

$course.get_name() - List of exercises

$for taskid, task in tasks.items() $if tasks_data[taskid]["visible"]: $ succeeded=tasks_data[taskid]["succeeded"] $ completion=tasks_data[taskid]["grade"]
$if 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) if completion.is_integer() else completion)%