feat: change text xblock title to 'Text' v2 (#30578)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<%!
|
||||
from django.utils.translation import gettext as _
|
||||
from cms.djangoapps.contentstore.views.helpers import xblock_studio_url
|
||||
from cms.djangoapps.contentstore.utils import is_visible_to_specific_partition_groups, get_editor_page_base_url
|
||||
from cms.djangoapps.contentstore.utils import is_visible_to_specific_partition_groups, get_editor_page_base_url, determine_label
|
||||
from lms.lib.utils import is_unit
|
||||
from openedx.core.djangolib.js_utils import (
|
||||
dump_js_escaped_json, js_escaped_string
|
||||
@@ -17,7 +17,7 @@ xblock_url = xblock_studio_url(xblock)
|
||||
show_inline = xblock.has_children and not xblock_url
|
||||
section_class = "level-nesting" if show_inline else "level-element"
|
||||
collapsible_class = "is-collapsible" if xblock.has_children else ""
|
||||
label = xblock.display_name_with_default or xblock.scope_ids.block_type
|
||||
label = determine_label(xblock.display_name_with_default, xblock.scope_ids.block_type)
|
||||
messages = xblock.validate().to_json()
|
||||
block_is_unit = is_unit(xblock)
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user