$def with (course,submissions,teams,users,myteam,msg, error)
$#
$# 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.get_name(user_manager.session_language())
$ username = user_manager.session_username()
$# Left column content
$def ColumnF():
$:template_helper.call('course_menu',course=course, template_helper=template_helper)
$:_("No set team in this course. If you think this is a mistake, please contact the course administrator.")
$elif course.can_students_choose_group():
$:_("My team")
$:_("You're not registered to a team. Please consider registration in one of the team below to take part in all course activities. If no more team is available, please contact the course administrator.")
$else:
$:_("My team")
$:_("You're not yet registered to a team. Please contact the course administrator for more information.")
$if not len(teams) == 0:
$:_("All teams")
$for index, team in enumerate(teams):
$if len(team["groups"])>0:
$:_("Team : {}").format(team["description"])
$ group = team["groups"][0]
$if len(myteam["groups"]) == 0 or username not in myteam["groups"][0]["students"] and (group["size"]-len(group["students"])) > 0 and course.can_students_choose_group():
$else:
$:_("Students")
$if len(myteam["groups"]) == 0 or username not in myteam["groups"][0]["students"] and (group["size"]-len(group["students"])) > 0 and course.can_students_choose_group():
$:_("(available : {})").format(group["size"]-len(group["students"]))