$def with (course,submissions,classroom,users,mygroup,msg, error) $# 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:
  Unregister from this course
$var Column: $:ColumnF() $def NavbarF(): $var Navbar: $:NavbarF() $# Start content

$course.get_name() - $classroom["description"]

$if error: $elif msg:
$if len(classroom["tutors"]) > 0:
    $for user in classroom["tutors"]:
  • $if users[user] is not None: $users[user][0] $else: $user
$if len(classroom["students"]) > 0:
    $for user in classroom["students"]:
  • $if users[user] is not None: $users[user][0] $else: $user
$if mygroup is not None:

My group

    $for user in mygroup["students"]:
  • $if users[user] is not None: $users[user][0] $else: $user
$elif len(classroom["groups"]) == 0: $elif course.can_students_choose_group():

My group

$else:

My group

$if not len(classroom["groups"]) == 0:

All groups

$for index, group in enumerate(classroom["groups"]): $if mygroup is None and (group["size"]-len(group["students"])) > 0 and course.can_students_choose_group():
$else:
    $if len(group["students"]) == 0:
  • No registered member.
  • $else: $for user in group["students"]:
  • $if users[user] is not None: $users[user][0] $else: $user