From e0d5118ca083700889c51a42d7ca9405643b0fe6 Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Wed, 29 May 2013 15:45:36 -0400 Subject: [PATCH] Add hidden HTML so that the video player knows whether or not we're in the LMS. --- common/lib/xmodule/xmodule/video_module.py | 3 ++- lms/templates/video.html | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/video_module.py b/common/lib/xmodule/xmodule/video_module.py index f902a9665b..ddc91392b9 100644 --- a/common/lib/xmodule/xmodule/video_module.py +++ b/common/lib/xmodule/xmodule/video_module.py @@ -139,7 +139,8 @@ class VideoModule(VideoFields, XModule): 'show_captions': self.show_captions, 'start': self.start_time, 'end': self.end_time, - 'normal_speed_video_id': normal_speed_video_id + 'normal_speed_video_id': normal_speed_video_id, + 'in_lms': True if self.system.course_id is not None else False }) diff --git a/lms/templates/video.html b/lms/templates/video.html index 24785abf72..558c7acec2 100644 --- a/lms/templates/video.html +++ b/lms/templates/video.html @@ -39,3 +39,9 @@

Download subtitles here.

% endif + +%if in_lms: + +%else: + +%endif