Skip to content

Commit 27d21bc

Browse files
committed
fixup! temp: implement PoC to display optional_completion info for individual XBlocks
1 parent 994e741 commit 27d21bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xmodule/x_module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,7 @@ def get(self, _key):
16531653
def set(self, key, value, timeout=None):
16541654
pass
16551655

1656+
16561657
class OptionalCompletionDisplayAside(XBlockAside):
16571658
"""
16581659
Displays the "Optional" information below each optional individual XBlock.
@@ -1661,8 +1662,9 @@ class OptionalCompletionDisplayAside(XBlockAside):
16611662
in the Learning MFE.
16621663
"""
16631664

1664-
@XBlockAside.aside_for("student_view")
1665+
@XBlockAside.aside_for(STUDENT_VIEW)
16651666
def aside_view(self, block, context=None):
1667+
"""The student view for the optional completion aside."""
16661668
has_children = getattr(block, "children", False)
16671669
is_explicitly_optional = block.get_explicitly_set_fields_by_scope(Scope.settings).get(
16681670
'optional_completion', False

0 commit comments

Comments
 (0)