From e2e4fbfdf10c2d1d13effbca6c3506658c849dfe Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Fri, 21 Jun 2024 22:41:51 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(rdfa)=20fix=20errors=20on=20Google?= =?UTF-8?q?=20Search=20Console?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Google Search Console requires more information for the RDFa information. fixes #2444 --- .../templates/courses/cms/course_detail.html | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/richie/apps/courses/templates/courses/cms/course_detail.html b/src/richie/apps/courses/templates/courses/cms/course_detail.html index cbdae3859f..cb44936d5c 100644 --- a/src/richie/apps/courses/templates/courses/cms/course_detail.html +++ b/src/richie/apps/courses/templates/courses/cms/course_detail.html @@ -368,22 +368,24 @@

{% blocktrans context "course_detail__title" %} {% block runs %}
{% render_model_add course "" "" "get_admin_url_to_add_run" %} - {% with runs_dict=current_page.course.course_runs_dict %} - {% with open_visible_runs=runs_dict.0|add:runs_dict.1|add:runs_dict.2|visible_on_course_page:request.toolbar.edit_mode_active %} - - {% for run in open_visible_runs %} - - - - - - - - {% endfor %} - {% endwith %} + {% with runs=current_page.course.course_runs|visible_on_course_page:request.toolbar.edit_mode_active %} + + + + + {% for run in runs %} + + + + + + + + + {% endfor %} {% endwith %}
{% endblock runs %}