diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index f40fad42152c..ce4eee624091 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -547,6 +547,17 @@ def get_taxonomy_list_url() -> str | None: return f'{mfe_base_url}/taxonomies' +def get_libraries_list_url() -> str | None: + """ + Gets course authoring microfrontend URL for libraries list view. + """ + mfe_base_url = settings.COURSE_AUTHORING_MICROFRONTEND_URL + if not mfe_base_url: + return None + + return f'{mfe_base_url}/libraries' + + def get_taxonomy_tags_widget_url(course_locator=None) -> str | None: """ Gets course authoring microfrontend URL for taxonomy tags drawer widget view. diff --git a/cms/static/sass/elements/_modal-window.scss b/cms/static/sass/elements/_modal-window.scss index 7ff4223cd3d8..7ac046a89aa8 100644 --- a/cms/static/sass/elements/_modal-window.scss +++ b/cms/static/sass/elements/_modal-window.scss @@ -28,7 +28,7 @@ padding: 5%; } - .title { + .title:not(.deprecated-title) { @extend %t-title5; @extend %t-demi-strong; diff --git a/cms/templates/library-block-author-preview-header.html b/cms/templates/library-block-author-preview-header.html index c6ebb4e6214c..f32498053ccf 100644 --- a/cms/templates/library-block-author-preview-header.html +++ b/cms/templates/library-block-author-preview-header.html @@ -1,6 +1,34 @@ <%page expression_filter="h"/> -<%! from django.utils.translation import ngettext %> +<%! +from django.utils.translation import ngettext, gettext as _ +from cms.djangoapps.contentstore.utils import get_libraries_list_url + +libraries_list_url = get_libraries_list_url() +%>