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
b5f3386d
Commit
b5f3386d
authored
Dec 05, 2012
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add breadcrumbing and clarify some of the text on the
instructor grading interface.
parent
5914b1cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
lms/static/coffee/src/staff_grading/staff_grading.coffee
+11
-2
lms/templates/instructor/staff_grading.html
+3
-3
No files found.
lms/static/coffee/src/staff_grading/staff_grading.coffee
View file @
b5f3386d
...
...
@@ -59,7 +59,7 @@ class StaffGradingBackend
# sends in a course_id and a grader_id
# should get back a list of problem_ids, problem_names, num_left, num_total
else
if
cmd
==
'get_problem_list'
@
mock_cnt
++
@
mock_cnt
=
1
response
=
success
:
true
problem_list
:
[
...
...
@@ -121,6 +121,8 @@ class StaffGrading
@
score_selection_container
=
$
(
'.score-selection-container'
)
@
submit_button
=
$
(
'.submit-button'
)
@
ml_error_info_container
=
$
(
'.ml-error-info-container'
)
@
breadcrumbs
=
$
(
'.breadcrumbs'
)
# model state
@
state
=
state_no_data
...
...
@@ -246,8 +248,9 @@ class StaffGrading
@
state
=
state_no_data
render_view
:
()
->
# clear the problem list
# clear the problem list
and breadcrumbs
@
problem_list
.
html
(
''
)
@
breadcrumbs
.
html
(
''
)
@
problem_list_container
.
toggle
(
@
list_view
)
@
message_container
.
html
(
@
message
)
# only show the grading elements when we are not in list view or the state
...
...
@@ -283,6 +286,12 @@ class StaffGrading
show_submit_button
=
true
@
error_container
.
html
(
@
error_msg
)
problem_list_link
=
$
(
'<a>'
).
attr
(
'href'
,
'javascript:void(0);'
)
.
append
(
"Problem List"
)
.
click
=>
@
get_problem_list
()
# set up the breadcrumbing
@
breadcrumbs
.
append
(
problem_list_link
).
append
(
" >
#{
@
prompt_name
}
"
)
if
@
state
==
state_error
@
set_button_text
(
'Try loading again'
)
...
...
lms/templates/instructor/staff_grading.html
View file @
b5f3386d
...
...
@@ -36,19 +36,19 @@
<section
class=
"prompt-wrapper"
>
<h2
class=
"prompt-name"
></h2>
<h3>
Question
prompt
</h3>
<h3>
Question
</h3>
<div
class=
"prompt-container"
>
</div>
</section>
<section
class=
"submission-wrapper"
>
<h3>
Submission
</h3>
<h3>
S
tudent S
ubmission
</h3>
<div
class=
"submission-container"
>
</div>
</section>
<section
class=
"rubric-wrapper"
>
<h3>
Rubric
</h3>
<h3>
Grading
Rubric
</h3>
<div
class=
"rubric-container"
>
</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