{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% extends "layout.html" %} {% set username = user_manager.session_username() %} {% block title %} {{ course.get_name(user_manager.session_language()) }} {% endblock %} {% block column %} {{ template_helper.call('course_menu',course=course, template_helper=template_helper) | safe }}

{{ _("Current grade") }}

{% set grade=user_manager.get_course_cache(username, course)["grade"] %}
{{grade|int}}%

{{ _("Last tried exercises") }}

{%if submissions %} {% for submission in submissions %} {{ submission['taskname'] }} {% endfor %} {% else %} {{ _("No submissions") }} {% endif %}
{% if course.allow_unregister() %}
  {{ _("Unregister from this course") }}
{% endif %} {% endblock %} {% block navbar %} {% endblock %} {%block content %}

{{ course.get_name(user_manager.session_language()) }} - {{ _("Groups") }}

{% if error %} {% elif msg %} {% endif %} {% if mygroup and username in mygroup["students"] %}
{{ _("My group : {}").format(mygroup["description"]) }} {% if course.can_students_choose_group() %} {% endif %}
{% elif not groups|length %} {% elif not allowed_groups|length %} {% elif course.can_students_choose_group() %}

{{ _("My group") }}

{% else %}

{{ _("My group") }}

{% endif %} {% if not allowed_groups|length == 0 %}

{{ _("All groups") }}

{% for group in allowed_groups %} {% set index = loop.index %}
{% endfor %} {% endif %} {% include "unregister_modal.html" %} {% endblock %}