$def with (open_courses, user_info) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $var title: $:_("Course list") $def NavbarF(): $var Navbar: $:NavbarF() $# Left column content $def ColumnF(): $if not user_manager.session_logged_in(): $:include.signin_button() $else:

$:_("Public courses")

$:_("My courses / Register for a course")
$var Column: $:ColumnF() $# Start content

$:_("Course list")

$ username = user_manager.session_username() $for courseid, course in open_courses.items(): $ no_display = (course.is_lti() or (not user_manager.course_is_user_registered(course, username) and not course.allow_preview())) and not user_manager.has_admin_rights_on_course(course)
$course.get_name(user_manager.session_language())
$if course.is_lti(): $if course.is_registration_possible(user_info): $if course.is_password_needed_for_registration():