From: Guillaume Pellerin Date: Fri, 12 Jul 2024 13:13:14 +0000 (+0200) Subject: fix link X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=08bf9fc69e4bf37f996f3be268e335f1d6d0bb4b;p=teleforma.git fix link --- 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 %}