$def with (course,task,submissions) $# Copyright (c) 2014-2015 Université Catholique de Louvain. $# $# This file is part of INGInious. $# $# INGInious is free software: you can redistribute it and/or modify $# it under the terms of the GNU Affero General Public License as published $# by the Free Software Foundation, either version 3 of the License, or $# (at your option) any later version. $# $# INGInious is distributed in the hope that it will be useful, $# but WITHOUT ANY WARRANTY; without even the implied warranty of $# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the $# GNU Affero General Public License for more details. $# $# You should have received a copy of the GNU Affero General Public $# License along with INGInious. If not, see . $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())
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)%

Submissions

Please note that for performance reasons, INGInious may not keep all your submissions indefinitely.

$var Column: $:ColumnF() $# Start content

$task.get_name()

$:task.get_context()
$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())