From 08bf9fc69e4bf37f996f3be268e335f1d6d0bb4b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 12 Jul 2024 15:13:14 +0200 Subject: [PATCH] fix link --- .../templates/teleforma/profile_detail.html | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/teleforma/templates/teleforma/profile_detail.html b/teleforma/templates/teleforma/profile_detail.html index 9528dc1b..d1833c64 100644 --- a/teleforma/templates/teleforma/profile_detail.html +++ b/teleforma/templates/teleforma/profile_detail.html @@ -12,23 +12,22 @@
{% block modules %} -
- -

playlists{{ period }}

+
+

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

-
    - {% block courses %} - {% for c in all_courses %} - {% with c.course as course %} -
  • {{ course.title }}
  • - {% endwith %} - {% endfor %} - {% endblock courses %} -
+
    + {% 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 %} +
+
- -
{% endblock %} -- 2.39.5