From 828b5341d73637d0680e10345700d63700b64be3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 12 Jul 2024 15:11:27 +0200 Subject: [PATCH] fix profile couses list --- .../templates/teleforma/profile_detail.html | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) 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 %} -- 2.39.5