From b5feb0748f7a207940c7fa23504a21610320bbe2 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Fri, 30 Aug 2013 13:44:49 -0400 Subject: [PATCH] Add in a hook to indicate whether or not the logged in user is active --- lms/djangoapps/verify_student/views.py | 2 +- lms/templates/verify_student/show_requirements.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index a0feeafd50..d8788b5c41 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -132,7 +132,7 @@ def show_requirements(request, course_id): """ Show the requirements necessary for """ - context = { "course_id": course_id } + context = { "course_id": course_id, "is_not_active": not request.user.is_active} return render_to_response("verify_student/show_requirements.html", context) def face_upload(request): diff --git a/lms/templates/verify_student/show_requirements.html b/lms/templates/verify_student/show_requirements.html index 73a560b7ec..3468af7b17 100644 --- a/lms/templates/verify_student/show_requirements.html +++ b/lms/templates/verify_student/show_requirements.html @@ -20,6 +20,9 @@ + %if is_not_active: +

I AM NOT ACTIVE.

+ %endif