$def with (course, task, submissions, remote_debug_available) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $var title: $:task.get_name() - $:task.get_course().get_name() $# Left column content $def ColumnF():

Informations

$if task.get_authors():
Author(s) $",".join(task.get_authors())
Deadline $task.get_deadline()
Status $if len(submissions) == 0: Not yet attempted $else: $ succeeded=False $ waiting=False $for submission in submissions: $if submission["status"] == "done" and submission["result"] == "success": $ succeeded=True $break $elif submission["status"] == "waiting": $ waiting=True $break $if succeeded: Succeeded $elif waiting: Waiting for verification $else: Wrong answer
Grade $user_manager.get_task_grade(task)%
Grading weight $task.get_grading_weight()
Attempts ${len(submissions)}
$if user_manager.has_staff_rights_on_course(course):

Administration

$if not course.is_open_to_non_staff(): $if not task.is_visible_by_students():
  View submissions $if user_manager.has_admin_rights_on_course(course):   Edit task   Debug informations
$else:

Submitting as

$if task.is_group_task():   Group $else:   $user_manager.session_realname()
  Classroom : $user_manager.get_course_user_classroom(course)["description"]
$:template_helper.call('task_menu', course=course, task=task, template_helper=template_helper)

Submissions

$if submissions: $for submission in submissions: $submission["submitted_on"].strftime("%d/%m/%Y %H:%M:%S") - $submission.get("grade",0.0)% $else: No submissions
$var Column: $:ColumnF() $def NavbarF(): $var Navbar: $:NavbarF() $# Start content

$task.get_name()

$:task.get_context()
$if user_manager.has_admin_rights_on_course(course):
$for key, problem in enumerate(task.get_problems()):
$if len(task.get_problems()) != 1 or problem.get_name() != "":

$if len(task.get_problems()) != 1: Question ${key+1}: $problem.get_name()

$:problem.get_header() $:problem.show_input(template_helper.get_common_renderer())
$if user_manager.task_can_user_submit(task): $if user_manager.has_admin_rights_on_course(course) and remote_debug_available:
$else: $elif not task.get_accessible_time().is_open(): $elif task.is_group_task(): Please register in a group $else: