Skip to content

Commit 20d2e65

Browse files
committed
fix: improve some code for public view
1 parent e06660e commit 20d2e65

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

xmodule/video_block/video_block.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,7 @@ def public_view(self, context):
274274
# The new runtime can support anonymous users as fully as regular users:
275275
return self.student_view(context)
276276

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-
)
277+
fragment = Fragment(self.get_html(view=PUBLIC_VIEW, context=context))
285278
add_css_to_fragment(fragment, 'VideoBlockDisplay.css')
286279
add_webpack_js_to_fragment(fragment, 'VideoBlockMain')
287280
fragment.initialize_js('Video')

0 commit comments

Comments
 (0)