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
aec40ead
Commit
aec40ead
authored
Jan 16, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use tables to display problems instead of a simple list
parent
8b3fb33f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
10 deletions
+41
-10
lms/static/coffee/src/staff_grading/staff_grading.coffee
+15
-3
lms/templates/instructor/staff_grading.html
+2
-2
lms/templates/peer_grading/peer_grading.html
+24
-5
No files found.
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
aec40ead
...
...
@@ -340,7 +340,14 @@ class StaffGrading
render_view
:
()
->
# clear the problem list and breadcrumbs
@
problem_list
.
html
(
''
)
@
problem_list
.
html
(
'''
<tr>
<th>Problem Name</th>
<th>Number Graded</th>
<th>Number Pending</th>
<th>Number Required</th>
</tr>
'''
)
@
breadcrumbs
.
html
(
''
)
@
problem_list_container
.
toggle
(
@
list_view
)
if
@
backend
.
mock_backend
...
...
@@ -368,7 +375,7 @@ class StaffGrading
problem_link
:
(
problem
)
->
link
=
$
(
'<a>'
).
attr
(
'href'
,
"javascript:void(0)"
).
append
(
"
#{
problem
.
problem_name
}
(
#{
problem
.
num_graded
}
graded,
#{
problem
.
num_pending
}
pending, required to grade
#{
problem
.
num_required
}
more)
"
)
"
#{
problem
.
problem_name
}
"
)
.
click
=>
@
get_next_submission
problem
.
location
...
...
@@ -381,7 +388,12 @@ class StaffGrading
render_list
:
()
->
for
problem
in
@
problems
@
problem_list
.
append
(
$
(
'<li>'
).
append
(
@
problem_link
(
problem
)))
problem_row
=
$
(
'<tr>'
)
problem_row
.
append
(
$
(
'<td>'
).
append
(
@
problem_link
(
problem
)))
problem_row
.
append
(
$
(
'<td>'
).
append
(
"
#{
problem
.
num_graded
}
"
))
problem_row
.
append
(
$
(
'<td>'
).
append
(
"
#{
problem
.
num_pending
}
"
))
problem_row
.
append
(
$
(
'<td>'
).
append
(
"
#{
problem
.
num_required
}
"
))
@
problem_list
.
append
(
problem_row
)
render_problem
:
()
->
# make the view elements match the state. Idempotent.
...
...
lms/templates/instructor/staff_grading.html
View file @
aec40ead
...
...
@@ -33,8 +33,8 @@
</div>
<h2>
Problem List
</h2>
<
ul
class=
"problem-list"
>
</
ul
>
<
table
class=
"problem-list"
>
</
table
>
</section>
<!-- Grading View -->
...
...
lms/templates/peer_grading/peer_grading.html
View file @
aec40ead
...
...
@@ -26,13 +26,32 @@
Nothing to grade!
</div>
%else:
<ul
class=
"problem-list"
>
<div
class=
"problem-list-container"
>
<table
class=
"problem-list"
>
<tr>
<th>
Problem Name
</th>
<th>
Number Graded
</th>
<th>
Number Pending
</th>
<th>
Number Required
</th>
</tr>
%for problem in problem_list:
<li>
<a
href=
"${ajax_url}problem?location=${problem['location']}"
>
${problem['problem_name']} (${problem['num_graded']} graded, ${problem['num_pending']} pending, required to grade ${problem['num_required']} more)
</a>
</li>
<tr>
<td>
<a
href=
"${ajax_url}/problem?location=$problem['location']"
>
${problem['problem_name']}
</a>
</td>
<td>
${problem['num_graded']}
</td>
<td>
${problem['num_pending']}
</td>
<td>
${problem['num_required']}
</td>
</tr>
%endfor
</ul>
</table>
</div>
%endif
%endif
</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