From 7fdd0fd6d47fcf7b1eaf030e520bb4306b12fd43 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Thu, 26 Jan 2023 11:52:25 +0500 Subject: [PATCH] feat: add banner to show if new discussion provider is active (#31645) --- cms/envs/common.py | 3 +++ cms/templates/course_outline.html | 35 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index 8973738887..bd06c27c1f 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2698,3 +2698,6 @@ EDX_BRAZE_API_KEY = None EDX_BRAZE_API_SERVER = None BRAZE_COURSE_ENROLLMENT_CANVAS_ID = '' + +DISCUSSIONS_INCONTEXT_FEEDBACK_URL = '' +DISCUSSIONS_INCONTEXT_LEARNMORE_URL = '' diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index 74a7592021..f9f499c87b 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -66,6 +66,41 @@ from django.urls import reverse %endif + %if context_course.discussions_settings.get('provider_type') == "openedx": +
+
+ +
+
+
+ ${_("This course run is using an upgraded version of edx discussion forum. Discussion xblocks will no longer work.")} +
+
+ + ${_(" Learn more")} + + + + ${_("Share feedback")} + + +
+
+
+ + +
+
+ %endif + + %if deprecated_blocks_info.get('blocks') or deprecated_blocks_info.get('deprecated_enabled_block_types'):