{% extends 'layout.html' %}
{% block content %}
    <section class="profile-section">
        {% block profile-nav %}
            {% include "../partials/_profile_nav.html" %}
        {% endblock %}
        <div class="profile-details">
            <h2>Mes cours</h2>
            <p>Retrouvez ici la liste de tous les cours que vous suivez.</p>
            <ul>
                {% for course in user_courses %}
                    <li><a href="{% url 'courses:show' course.name|slugify course.id %}">{{ course.name }}</a></li>
                {% endfor %}
            </ul>
        </div>
    </section>
{% endblock %}