make embargo template theme-able

Use "Stanford-style" theming to enable you to put your own embargo
notice up.
This commit is contained in:
Sef Kloninger
2014-03-05 15:19:32 -08:00
parent 601b5a8ceb
commit f484807419

View File

@@ -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):