{% extends "learning/resource/base.html" %} {% load i18n learning django_bootstrap_breadcrumbs %} {% block title %}{{ block.super }} − {% trans "My resources" %}{% endblock %} {% block learning_content %}
{{ form.query }}
{# The result of the query: gives resources to display #} {% if search_has_obj == False %}
{% trans "No resources that you are teaching match your search…" %}
{% else %} {% if search_nb_per_page > 0 %}

{% trans "My search" %}


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

{% trans "My favourites resources" %}


{% for resource in favourite_page_obj %} {% include "learning/resource/_includes/block/resource_block.html" with resource=resource %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=favourite_page_obj prefix='favourites' nb_per_page=favourite_nb_per_page %} {% endif %} {# The resources owned by the connected user #} {% if author_has_obj %}

{% trans "My resources" %}


{% for resource in author_page_obj %} {% include "learning/resource/_includes/block/resource_block.html" with resource=resource %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=author_page_obj prefix='author' nb_per_page=author_nb_per_page %} {% else %}
{% endif %} {# The resources on which the user collaborates on #} {% if contributor_has_obj %}

{% trans "My contributions" %}


{% for contribution in contributor_page_obj %} {% include "learning/resource/_includes/block/resource_block.html" with resource=contribution.resource contribution=contribution %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=contributor_page_obj prefix='contributor' nb_per_page=contributor_nb_per_page %} {% endif %} {% endblock %}