Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b5feb074
Commit
b5feb074
authored
Aug 30, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in a hook to indicate whether or not the logged in user is active
parent
c96a29d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
lms/djangoapps/verify_student/views.py
+1
-1
lms/templates/verify_student/show_requirements.html
+3
-0
No files found.
lms/djangoapps/verify_student/views.py
View file @
b5feb074
...
...
@@ -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
):
...
...
lms/templates/verify_student/show_requirements.html
View file @
b5feb074
...
...
@@ -20,6 +20,9 @@
</span>
</h2>
</header>
%if is_not_active:
<p>
I AM NOT ACTIVE.
</p>
%endif
<div
class=
"wrapper-progress"
>
<section
class=
"progress"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment