From e53a631ca315bf3710ee000221d8b79c41ead974 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 | 32 +++++++++---------- 1 file changed, 16 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..9729ccffdb 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,22 @@

{% 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 %}