From e4c69565f451a63d6796773099ccd42c57ab187f Mon Sep 17 00:00:00 2001 From: Dima Alipov Date: Wed, 27 Mar 2024 17:02:51 +0200 Subject: [PATCH] feat: adaptive display of links Do not display the 'Learn more' and 'Share feedback' links for banner that is enabled by the context_course.discussions_settings flag if the URLs for these links are not set in the settings. --- cms/templates/course_outline.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index f44fdcfc8055..61f524123b48 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -76,14 +76,18 @@

${_("This course was created as a re-run. Some manual ${_("This course run is using an upgraded version of edx discussion forum. In order to display the discussions sidebar, discussions xBlocks will no longer be visible to learners.")}
+ %if settings.DISCUSSIONS_INCONTEXT_LEARNMORE_URL: ${_(" Learn more")} + %endif + %if settings.DISCUSSIONS_INCONTEXT_FEEDBACK_URL: ${_("Share feedback")} + %endif