diff --git a/cms/templates/textbooks.html b/cms/templates/textbooks.html index 3e21192193..0cad5f2f6e 100644 --- a/cms/templates/textbooks.html +++ b/cms/templates/textbooks.html @@ -5,6 +5,8 @@ <%! from django.utils.translation import ugettext as _ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string +from openedx.core.djangoapps.discussions.config.waffle import ENABLE_PAGES_AND_RESOURCES_MICROFRONTEND +from cms.djangoapps.contentstore.utils import get_pages_and_resources_url %> <%block name="title">${_("Textbooks")} @@ -36,11 +38,39 @@ CMS.URL.LMS_BASE = "${settings.LMS_BASE | n, js_escaped_string}" <%block name="content">
+ % if context_course: + <% + pages_and_resources_mfe_enabled = ENABLE_PAGES_AND_RESOURCES_MICROFRONTEND.is_enabled(context_course.id) + course_key = context_course.id + %> + % endif + + % if pages_and_resources_mfe_enabled: +
+
+ +
+

+ > ${_("Textbooks")} +

+ % else:

${_("Content")} > ${_("Textbooks")}

+ % endif