diff --git a/lms/templates/video.html b/lms/templates/video.html index cc73172e9a..1d6f540e1e 100644 --- a/lms/templates/video.html +++ b/lms/templates/video.html @@ -10,8 +10,12 @@ data-streams="${youtube_streams}" - ${'data-sub="{}"'.format(sub) if sub else ''} - ${'data-autoplay="{}"'.format(autoplay) if autoplay else ''} + % if sub: + data-sub="${sub}" + % endif + % if autoplay: + data-autoplay="${autoplay}" + % endif data-sources='${sources}' data-save-state-url="${ajax_url}" @@ -104,14 +108,13 @@