{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% set registered = user_manager.course_is_user_registered(course) %}
{% for task in tasks %} {% set taskid = task.get_id() %} {% if taskid in tasks_data %} {% set succeeded = tasks_data[taskid]["succeeded"] %} {% set completion = tasks_data[taskid]["grade"] %}
{{ task.get_name(user_manager.session_language()) }} {% if not task.get_accessible_time().is_open() %} - {{ _("deadline reached") }} {% endif %}
{{ "DEADLINE: "}} {{ task.get_deadline() }}
{% if registered %}
{% if completion.is_integer() %}{{ completion | int }}{% else %}{{ completion }}{% endif %} %
{% endif %}
{% endif %} {% endfor %}