Commit b5f3386d by Diana Huang

Add breadcrumbing and clarify some of the text on the

instructor grading interface.
parent 5914b1cf
...@@ -59,7 +59,7 @@ class StaffGradingBackend ...@@ -59,7 +59,7 @@ class StaffGradingBackend
# sends in a course_id and a grader_id # sends in a course_id and a grader_id
# should get back a list of problem_ids, problem_names, num_left, num_total # should get back a list of problem_ids, problem_names, num_left, num_total
else if cmd == 'get_problem_list' else if cmd == 'get_problem_list'
@mock_cnt++ @mock_cnt = 1
response = response =
success: true success: true
problem_list: [ problem_list: [
...@@ -122,6 +122,8 @@ class StaffGrading ...@@ -122,6 +122,8 @@ class StaffGrading
@submit_button = $('.submit-button') @submit_button = $('.submit-button')
@ml_error_info_container = $('.ml-error-info-container') @ml_error_info_container = $('.ml-error-info-container')
@breadcrumbs = $('.breadcrumbs')
# model state # model state
@state = state_no_data @state = state_no_data
@submission_id = null @submission_id = null
...@@ -246,8 +248,9 @@ class StaffGrading ...@@ -246,8 +248,9 @@ class StaffGrading
@state = state_no_data @state = state_no_data
render_view: () -> render_view: () ->
# clear the problem list # clear the problem list and breadcrumbs
@problem_list.html('') @problem_list.html('')
@breadcrumbs.html('')
@problem_list_container.toggle(@list_view) @problem_list_container.toggle(@list_view)
@message_container.html(@message) @message_container.html(@message)
# only show the grading elements when we are not in list view or the state # only show the grading elements when we are not in list view or the state
...@@ -283,6 +286,12 @@ class StaffGrading ...@@ -283,6 +286,12 @@ class StaffGrading
show_submit_button = true show_submit_button = true
@error_container.html(@error_msg) @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 if @state == state_error
@set_button_text('Try loading again') @set_button_text('Try loading again')
......
...@@ -36,19 +36,19 @@ ...@@ -36,19 +36,19 @@
<section class="prompt-wrapper"> <section class="prompt-wrapper">
<h2 class="prompt-name"></h2> <h2 class="prompt-name"></h2>
<h3>Question prompt</h3> <h3>Question</h3>
<div class="prompt-container"> <div class="prompt-container">
</div> </div>
</section> </section>
<section class="submission-wrapper"> <section class="submission-wrapper">
<h3>Submission</h3> <h3>Student Submission</h3>
<div class="submission-container"> <div class="submission-container">
</div> </div>
</section> </section>
<section class="rubric-wrapper"> <section class="rubric-wrapper">
<h3>Rubric</h3> <h3>Grading Rubric</h3>
<div class="rubric-container"> <div class="rubric-container">
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment