$def with (course, task, submissions, students, eval_submission, user_task, webterm_link) $# $# 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():

Information

$if task.get_authors():
Author(s) $",".join(task.get_authors())
Deadline $task.get_deadline()
Status $if not eval_submission and len(submissions) == 0: Not yet attempted $elif eval_submission is not None and eval_submission["status"] == "done" and eval_submission["result"] == "success": Succeeded $else: $ waiting=False $for submission in submissions: $if submission["status"] == "waiting": $ waiting=True $break $if waiting: Waiting for verification $else: Failed
Grade $user_task.get('grade', 0)%
Grading weight $task.get_grading_weight()
Attempts $(user_task.get('tried', 0))
Submission limit $ submission_limit = task.get_submission_limit() $if submission_limit == {"amount":-1, "period":-1}: No limitation $else: $submission_limit["amount"] submissions $if submission_limit["period"] > 0:
every $submission_limit["period"] hour(s)
$if user_manager.has_staff_rights_on_course(course):

Administration

$if not course.is_open_to_non_staff(): $if not task.get_accessible_time().after_start():
  View submissions $if user_manager.has_admin_rights_on_course(course):   Edit task   Debug information
$else:

Submitting as

$if task.is_group_task():   $('Group' if course.use_classrooms() else 'Team') $else:   $user_manager.session_realname()
  $ myaggregation = user_manager.get_course_user_aggregation(course) $if course.use_classrooms(): Classroom : $myaggregation["description"] $elif len(myaggregation['groups']) > 0 and user_manager.session_username() in myaggregation['groups'][0]['students']: Team : $myaggregation['description'] $else: Teams management
$:template_helper.call('task_menu', course=course, task=task, template_helper=template_helper)

For evaluation

$if task.get_evaluate() == "last": Last submission $elif task.get_evaluate() == "best": Best submission $else: Selected submission
$if eval_submission: $eval_submission["submitted_on"].strftime("%d/%m/%Y %H:%M:%S") - $eval_submission.get("grade",0.0)% $else:
No submission

Submission history

$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):
$# Store path to webterm if given $if webterm_link is not None: $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())
$ groups_ok = user_manager.task_can_user_submit(task, user_manager.session_username(), 'groups') $ tokens_ok = user_manager.task_can_user_submit(task, user_manager.session_username(), 'tokens') $if groups_ok and tokens_ok: $if user_manager.has_admin_rights_on_course(course):
$else: $elif not task.get_accessible_time().is_open(): $elif task.is_group_task() and not groups_ok: Please register in a $('group' if course.use_classrooms() else 'team') $elif not tokens_ok: $else: