From: Guillaume Pellerin Date: Fri, 12 Jul 2024 13:11:27 +0000 (+0200) Subject: fix profile couses list X-Git-Tag: 2.9.2~68 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=828b5341d73637d0680e10345700d63700b64be3;p=teleforma.git fix profile couses list --- diff --git a/teleforma/templates/teleforma/profile_detail.html b/teleforma/templates/teleforma/profile_detail.html index 706d5709..9528dc1b 100644 --- a/teleforma/templates/teleforma/profile_detail.html +++ b/teleforma/templates/teleforma/profile_detail.html @@ -12,23 +12,24 @@
{% block modules %} -
-

playlists{% if user.username != usr.username%}{% trans "His courses" %}{% else %}{% trans "My courses" %}{% endif %}

+
+ +

playlists{{ period }}

-
    - {% block courses %} - {% with usr|user_courses as courses %} - {% for c in courses %} - {% with c.course as course %} -
  • {{ course.title}} {{ course.type }}
  • - {% endwith %} - {% endfor %} - {% endwith %} - {% endblock courses %} -
-
+
    + {% block courses %} + {% for c in all_courses %} + {% with c.course as course %} +
  • {{ course.title }}
  • + {% endwith %} + {% endfor %} + {% endblock courses %} +
+
+ {% endblock %} {% if user.is_authenticated and user.username != usr.username %}