{# 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" %} {% block title %}{{ _("My courses") }}{% endblock %} {% block navbar %} {% endblock %} {% block column %}

{{ _("My courses") }}

{{ _("Course list") }}

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

{% if submissions %} {% for submission in submissions %} {{ submission["task"].get_course().get_name(user_manager.session_language()) }}: {{ submission["task"].get_name(user_manager.session_language()) }} {% endfor %} {% else %} {{ _("No submissions") }} {% endif %}
{{ template_helper.call('main_menu', template_helper=template_helper) | safe }} {% endblock %} {% block content %}

{{ _("My courses") }}

{%if open_courses %} {% set username = user_manager.session_username() %} {% for courseid, course in open_courses.items() %}
{{ course.get_name(user_manager.session_language()) }}
{% if course.is_lti() %} {{ _("LTI course") }} - {% elif not course.is_open_to_non_staff() %} {{ _("Hidden course") }} - {% endif %} {% if username in course.get_admins() or user_manager.user_is_superadmin() %} {{ _("Administrator") }} {% elif username in course.get_tutors() %} {{ _("Tutor") }} {% elif user_manager.course_is_user_registered(course) %} {{ _("Student") }} {% endif %}
{% endfor %} {% else %} {{ _("You are not registered to any course") }} {% endif %}
{% if user_manager.user_is_superadmin() %}
{% if success == True %} {% elif success == False %} {% endif %}
{% endif %} {% endblock %}