{# 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 = session.username %} {% block title %} {{ course.get_name(session.language) }} {% endblock %} {% block column %} {% for entry in plugin_manager.call_hook('course_menu', course=course) %} {{ entry | safe }} {% endfor %}

{{ _("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(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 %}