$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()
$ username = user_manager.session_username()
$# Left column content
$def ColumnF():
$:template_helper.call('course_menu',course=course, template_helper=template_helper)
$if len(myteam["groups"]) > 0 and username in myteam["groups"][0]["students"]:
My team : $myteam["description"]
Students
$if course.can_students_choose_group():
$for user in myteam["groups"][0]["students"]:
$if users[user] is not None:
$users[user][0]
$else:
$user
$if len(myteam["tutors"]) > 0:
Tutors
$for user in myteam["tutors"]:
$if users[user] is not None:
$users[user][0]
$else:
$user
$elif len(myteam["groups"]) == 0:
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 : $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 : $(group["size"]-len(group["students"])) )