$def with (open_courses,registrable_courses,submissions,registration_status) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $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: