From f484807419b14d47870372eb69a3668fa9da12af Mon Sep 17 00:00:00 2001 From: Sef Kloninger Date: Wed, 5 Mar 2014 15:19:32 -0800 Subject: [PATCH] make embargo template theme-able Use "Stanford-style" theming to enable you to put your own embargo notice up. --- common/djangoapps/student/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 2c802d3f4f..3b6198d33d 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -148,7 +148,11 @@ def embargo(_request): Explains to the user why they are not able to access a particular embargoed course. """ - return render_to_response('static_templates/embargo.html') + if settings.FEATURES["USE_CUSTOM_THEME"]: + template="static_templates/theme-embargo.html" + else: + template="static_templates/embargo.html" + return render_to_response(template) def press(request):