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
27a0cf31
Commit
27a0cf31
authored
Aug 13, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style improvements in the instructor dashboard
parent
a938e7f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
+22
-0
edx_proctoring/static/proctoring/templates/student-proctored-exam-attempts.underscore
+3
-3
No files found.
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
View file @
27a0cf31
...
...
@@ -5,6 +5,20 @@ var edx = edx || {};
edx
.
instructor_dashboard
=
edx
.
instructor_dashboard
||
{};
edx
.
instructor_dashboard
.
proctoring
=
edx
.
instructor_dashboard
.
proctoring
||
{};
var
examStatusReadableFormat
=
{
eligible
:
'Eligible'
,
created
:
'Created'
,
ready_to_start
:
'Ready to start'
,
started
:
'Started'
,
ready_to_submit
:
'Ready to submit'
,
declined
:
'Declined'
,
timed_out
:
'Timed out'
,
submitted
:
'Submitted'
,
verified
:
'Verified'
,
rejected
:
'Rejected'
,
not_reviewed
:
'Not reviewed'
,
error
:
'Error'
};
var
viewHelper
=
{
getDateFormat
:
function
(
date
)
{
if
(
date
)
{
...
...
@@ -14,6 +28,14 @@ var edx = edx || {};
return
'---'
;
}
},
getExamAttemptStatus
:
function
(
status
)
{
if
(
status
in
examStatusReadableFormat
)
{
return
examStatusReadableFormat
[
status
]
}
else
{
return
status
}
}
};
edx
.
instructor_dashboard
.
proctoring
.
ProctoredExamAttemptView
=
Backbone
.
View
.
extend
({
...
...
edx_proctoring/static/proctoring/templates/student-proctored-exam-attempts.underscore
View file @
27a0cf31
<div class="wrapper-content wrapper">
<% var is_proctored_attempts = proctored_exam_attempts.length !== 0 %>
<section class="content">
<section class="content
exam-attempts-content
">
<div class="top-header">
<div class='search-attempts'>
<input type="text" id="search_attempt_id" placeholder="e.g johndoe or john.doe@gmail.com"
...
...
@@ -81,7 +81,7 @@
<tr class="exam-attempt-headings">
<th class="username"><%- gettext("Username") %></th>
<th class="exam-name"><%- gettext("Exam Name") %></th>
<th class="attempt-allowed-time"><%- gettext("
Allowed Time (Minutes)
") %> </th>
<th class="attempt-allowed-time"><%- gettext("
Time Limit
") %> </th>
<th class="attempt-started-at"><%- gettext("Started At") %></th>
<th class="attempt-completed-at"><%- gettext("Completed At") %> </th>
<th class="attempt-status"><%- gettext("Status") %> </th>
...
...
@@ -103,7 +103,7 @@
<td> <%= getDateFormat(proctored_exam_attempt.completed_at) %></td>
<td>
<% if (proctored_exam_attempt.status){ %>
<%=
proctored_exam_attempt.status
%>
<%=
getExamAttemptStatus(proctored_exam_attempt.status)
%>
<% } else { %>
N/A
<% } %>
...
...
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