We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e06660e commit 20d2e65Copy full SHA for 20d2e65
1 file changed
xmodule/video_block/video_block.py
@@ -274,14 +274,7 @@ def public_view(self, context):
274
# The new runtime can support anonymous users as fully as regular users:
275
return self.student_view(context)
276
277
- fragment = Fragment()
278
- fragment.add_content(
279
- loader.render_django_template(
280
- "templates/video.html",
281
- self.get_html(view=PUBLIC_VIEW, context=context),
282
- i18n_service=self.runtime.service(self, "i18n"),
283
- )
284
+ fragment = Fragment(self.get_html(view=PUBLIC_VIEW, context=context))
285
add_css_to_fragment(fragment, 'VideoBlockDisplay.css')
286
add_webpack_js_to_fragment(fragment, 'VideoBlockMain')
287
fragment.initialize_js('Video')
0 commit comments