$def with (open_courses,registrable_courses,submissions,registration_status) $# 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: My profile $# Left column content $def ColumnF():

Last tried exercises

$if submissions: $for submission in submissions: $submission["task"].get_course().get_name(): $submission["task"].get_name() $else: No submissions
$var Column: $:ColumnF() $# Start content

My courses

$if len(open_courses) != 0: $for courseid in open_courses: $if not user_manager.course_is_user_registered(open_courses[courseid]) and not open_courses[courseid].can_students_choose_group():
$else:
$ grade=user_manager.get_course_grade(open_courses[courseid])
$int(grade)%
$if not user_manager.course_is_user_registered(open_courses[courseid]) and not open_courses[courseid].can_students_choose_group():
$else: $else: You are not registered to any course

Register for a course

$if registration_status == True: $elif registration_status == False: