From 72fc25ae12b411dea8a73a00015fa3d98558950d Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Mon, 7 Dec 2015 10:26:47 -0500 Subject: [PATCH] Use `disable_footer` variable to disable footer on login page Rather than Mako block hack --- lms/djangoapps/student_account/views.py | 1 + lms/templates/student_account/login_and_register.html | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lms/djangoapps/student_account/views.py b/lms/djangoapps/student_account/views.py index 8265e9fa8b..bcc156d6d1 100644 --- a/lms/djangoapps/student_account/views.py +++ b/lms/djangoapps/student_account/views.py @@ -116,6 +116,7 @@ def login_and_registration_form(request, initial_mode="login"): 'responsive': True, 'allow_iframing': True, 'disable_courseware_js': True, + 'disable_footer': True, } return render_to_response('student_account/login_and_register.html', context) diff --git a/lms/templates/student_account/login_and_register.html b/lms/templates/student_account/login_and_register.html index d633d64965..962936bb93 100644 --- a/lms/templates/student_account/login_and_register.html +++ b/lms/templates/student_account/login_and_register.html @@ -27,10 +27,3 @@
- -% if settings.FEATURES.get('ENABLE_COMBINED_LOGIN_REGISTRATION'): - ## This overwrites the "footer" block declared in main.html - ## with an empty block, effectively hiding the footer - ## from logistration pages. - <%block name="footer"/> -% endif