Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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
OpenEdx
edx-proctoring
Commits
137e59f5
Commit
137e59f5
authored
Jul 01, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proctoring instructions page
parent
fe865706
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
edx_proctoring/api.py
+5
-2
edx_proctoring/templates/proctoring/seq_proctored_exam_instructions.html
+4
-0
No files found.
edx_proctoring/api.py
View file @
137e59f5
...
...
@@ -289,8 +289,8 @@ def get_student_view(user_id, course_id, content_id, context):
)
attempt
=
get_exam_attempt
(
exam_id
,
user_id
)
has_started_exam
=
attempt
is
not
None
if
attempt
:
has_started_exam
=
attempt
and
attempt
.
get
(
'started_at'
)
if
has_started_exam
:
now_utc
=
datetime
.
now
(
pytz
.
UTC
)
expires_at
=
attempt
[
'started_at'
]
+
timedelta
(
minutes
=
context
[
'default_time_limit_mins'
])
has_time_expired
=
now_utc
>
expires_at
...
...
@@ -299,8 +299,11 @@ def get_student_view(user_id, course_id, content_id, context):
# determine whether to show a timed exam only entrance screen
# or a screen regarding proctoring
if
is_proctored
:
if
not
attempt
:
student_view_template
=
'proctoring/seq_proctored_exam_entrance.html'
else
:
student_view_template
=
'proctoring/seq_proctored_exam_instructions.html'
else
:
student_view_template
=
'proctoring/seq_timed_exam_entrance.html'
elif
has_finished_exam
:
student_view_template
=
'proctoring/seq_timed_exam_completed.html'
...
...
edx_proctoring/templates/proctoring/seq_proctored_exam_instructions.html
0 → 100644
View file @
137e59f5
{% load i18n %}
<div
class=
"sequence"
data-exam-id=
"{{exam_id}}"
>
How to launch the proctored exam content goes here
</div>
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