$def with (open_courses,registrable_courses,submissions,success) $# $# 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 courses $# 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
$:template_helper.call('main_menu', template_helper=template_helper) $var Column: $:ColumnF() $# Start content

My courses

$if len(open_courses) != 0: $ username = user_manager.session_username() $for courseid, course in open_courses.items():
$course.get_name()
$if not course.is_open_to_non_staff(): Course not shown to students - $if username in course.get_admins() or user_manager.user_is_superadmin(): Administrator $elif username in course.get_tutors(): Tutor $else: Student
$else: You are not registered to any course

$if user_manager.user_is_superadmin(): $if success == True: $if success == False:
$else:

Register for a course

$if success == True: $elif success == False: