diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index 882f453e76..1003efb57f 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -22,7 +22,7 @@ from openedx.features.course_experience import course_home_page_title, DISABLE_C (course.enable_proctored_exams or course.enable_timed_exams) ) - completion_aggregator_url = settings.COMPLETION_AGGREGATOR_URL if settings.FEATURES.get("SHOW_PROGRESS_BAR", False) else "" + completion_aggregator_url = getattr(settings, "COMPLETION_AGGREGATOR_URL", "") %> <%def name="course_name()"> @@ -238,7 +238,7 @@ ${HTML(fragment.foot_html())} ${sequence_title} % endif - % if settings.FEATURES.get("SHOW_PROGRESS_BAR", False): + % if settings.FEATURES.get("SHOW_PROGRESS_BAR", False) and completion_aggregator_url:
diff --git a/lms/templates/seq_module.html b/lms/templates/seq_module.html index 6a7aa6c7cc..f29f6ae062 100644 --- a/lms/templates/seq_module.html +++ b/lms/templates/seq_module.html @@ -117,7 +117,7 @@ ${gated_sequence_paywall | n, decode.utf8} % else:
- % if settings.FEATURES.get("SHOW_PROGRESS_BAR", False): + % if settings.FEATURES.get("SHOW_PROGRESS_BAR", False) and getattr(settings, 'COMPLETION_AGGREGATOR_URL', ''):