$def with (course,submissions) $# Copyright (c) 2014-2015 Université Catholique de Louvain. $# $# This file is part of INGInious. $# $# INGInious is free software: you can redistribute it and/or modify $# it under the terms of the GNU Affero General Public License as published $# by the Free Software Foundation, either version 3 of the License, or $# (at your option) any later version. $# $# INGInious is distributed in the hope that it will be useful, $# but WITHOUT ANY WARRANTY; without even the implied warranty of $# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the $# GNU Affero General Public License for more details. $# $# You should have received a copy of the GNU Affero General Public $# License along with INGInious. If not, see . $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)%