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
f7ba83a3
Commit
f7ba83a3
authored
Aug 26, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #103 from edx/muhhshoaib/PHX-112-style-improvements-instructor-dashboard
style improvements in the instructor dashboard
parents
3da199a9
9d0fced4
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 @
f7ba83a3
...
...
@@ -5,6 +5,20 @@ var edx = edx || {};
edx
.
instructor_dashboard
=
edx
.
instructor_dashboard
||
{};
edx
.
instructor_dashboard
.
proctoring
=
edx
.
instructor_dashboard
.
proctoring
||
{};
var
examStatusReadableFormat
=
{
eligible
:
gettext
(
'Eligible'
),
created
:
gettext
(
'Created'
),
ready_to_start
:
gettext
(
'Ready to start'
),
started
:
gettext
(
'Started'
),
ready_to_submit
:
gettext
(
'Ready to submit'
),
declined
:
gettext
(
'Declined'
),
timed_out
:
gettext
(
'Timed out'
),
submitted
:
gettext
(
'Submitted'
),
verified
:
gettext
(
'Verified'
),
rejected
:
gettext
(
'Rejected'
),
not_reviewed
:
gettext
(
'Not reviewed'
),
error
:
gettext
(
'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 @
f7ba83a3
<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