{% extends "learning/base.html" %} {% load i18n django_bootstrap_breadcrumbs %} {% block title %}{{ block.super }} − {% trans "Courses I’m following" %}{% endblock %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Studying" "" %} {% breadcrumb "My courses" "learning:course/student" course.slug %} {% endblock %} {% block learning_content %}
{{ form.query }}
{% if search_has_obj == False %}
{% trans "No courses in which you are registered match your search…" %}
{% else %} {% if search_nb_per_page > 0 %}

{% trans "My search" %}

{% for course in search_page_obj %} {% include "learning/course/_includes/block/course_block_base.html" with course=course %} {% endfor %}
{% endif %} {% include 'learning/_includes/paginator_buttons.html' with current_page=search_page_obj prefix='search' nb_per_page=search_nb_per_page %} {% endif %} {# The favourite courses where the connected user is student #} {% if favourite_has_obj %}

{% trans "My favourites courses" %}


{% for course in favourite_page_obj %} {% include "learning/course/_includes/block/teacher_course_block.html" %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=favourite_page_obj prefix='favourites' nb_per_page=favourite_nb_per_page %} {% endif %} {% if follow_has_obj %}

{% trans "My courses" %}


{% for course in follow_page_obj %} {% include "learning/course/_includes/block/course_block_base.html" with course=course %} {% endfor %}
{% include "learning/_includes/paginator_buttons.html" with current_page=follow_page_obj prefix='follow' nb_per_page=follow_nb_per_page %} {% else %}
{% endif %} {% endblock %}