Commit b7cadf43 by Jason Bau

Merge pull request #375 from edx/giulio/peer-grading-style-release

Giulio/peer grading style release
parents 88e580bc c047050e
...@@ -52,6 +52,7 @@ section.legend-container { ...@@ -52,6 +52,7 @@ section.legend-container {
width: 20%; width: 20%;
} }
margin-bottom: 5px; margin-bottom: 5px;
display: none !important;
} }
section.combined-open-ended-status { section.combined-open-ended-status {
......
...@@ -2,7 +2,7 @@ nav.sequence-nav { ...@@ -2,7 +2,7 @@ nav.sequence-nav {
// TODO (cpennington): This doesn't work anymore. XModules aren't able to // TODO (cpennington): This doesn't work anymore. XModules aren't able to
// import from external sources. // import from external sources.
@extend .topbar; @extend .topbar;
margin: -4px 0 30px; margin: -4px 30px 30px 30px;
position: relative; position: relative;
border-bottom: none; border-bottom: none;
...@@ -35,7 +35,7 @@ nav.sequence-nav { ...@@ -35,7 +35,7 @@ nav.sequence-nav {
z-index: 99; z-index: 99;
border: 1px solid #ccc; border: 1px solid #ccc;
height: 44px; height: 44px;
margin: 0 30px; margin: 0;
@include linear-gradient(top, #ddd, #eee); @include linear-gradient(top, #ddd, #eee);
@include box-shadow(0 1px 3px rgba(0, 0, 0, .1) inset); @include box-shadow(0 1px 3px rgba(0, 0, 0, .1) inset);
} }
...@@ -259,9 +259,8 @@ nav.sequence-nav { ...@@ -259,9 +259,8 @@ nav.sequence-nav {
} }
&.prev { &.prev {
left: -10px; left: -40px;
border-radius: 35px 0 0 35px; border-radius: 35px 0 0 35px;
a { a {
background-image: url('../images/sequence-nav/previous-icon.png'); background-image: url('../images/sequence-nav/previous-icon.png');
background-position: center 15px; background-position: center 15px;
...@@ -269,7 +268,7 @@ nav.sequence-nav { ...@@ -269,7 +268,7 @@ nav.sequence-nav {
} }
&.next { &.next {
right: -10px; right: -40px;
border-radius: 0 35px 35px 0; border-radius: 0 35px 35px 0;
a { a {
......
...@@ -152,10 +152,13 @@ class @CombinedOpenEnded ...@@ -152,10 +152,13 @@ class @CombinedOpenEnded
@out_of_sync_message = 'The problem state got out of sync. Try reloading the page.' @out_of_sync_message = 'The problem state got out of sync. Try reloading the page.'
if @task_number>1 # force show the prompt
@prompt_hide() @prompt_show()
else if @task_number==1 and @child_state!='initial'
@prompt_hide() # if @task_number>1
# @prompt_hide()
# else if @task_number==1 and @child_state!='initial'
# @prompt_hide()
@find_assessment_elements() @find_assessment_elements()
@find_hint_elements() @find_hint_elements()
......
...@@ -344,7 +344,7 @@ class @PeerGradingProblem ...@@ -344,7 +344,7 @@ class @PeerGradingProblem
if response.success if response.success
@is_calibrated_check() @is_calibrated_check()
@grading_message.fadeIn() @grading_message.fadeIn()
@grading_message.html("<p>Successfully saved your feedback. Fetched the next essay.</p>") @grading_message.html("<p>Successfully saved your feedback. Fetched the next essay.</p>").focus()
else else
if response.error if response.error
@render_error(response.error) @render_error(response.error)
...@@ -516,7 +516,7 @@ class @PeerGradingProblem ...@@ -516,7 +516,7 @@ class @PeerGradingProblem
gentle_alert: (msg) => gentle_alert: (msg) =>
@grading_message.fadeIn() @grading_message.fadeIn()
@grading_message.html("<p>" + msg + "</p>") @grading_message.html("<p>" + msg + "</p>").focus()
collapse_question: () => collapse_question: () =>
@prompt_container.slideToggle() @prompt_container.slideToggle()
......
...@@ -168,7 +168,8 @@ def _peer_grading(tab, user, course, active_page): ...@@ -168,7 +168,8 @@ def _peer_grading(tab, user, course, active_page):
def _combined_open_ended_grading(tab, user, course, active_page): def _combined_open_ended_grading(tab, user, course, active_page):
if user.is_authenticated(): if user.is_authenticated():
link = reverse('open_ended_notifications', args=[course.id]) link = reverse('open_ended_notifications', args=[course.id])
tab_name = "Open Ended Panel" # tab_name = "Open Ended Panel"
tab_name = "Grading Panel"
notifications = open_ended_notifications.combined_notifications(course, user) notifications = open_ended_notifications.combined_notifications(course, user)
pending_grading = notifications['pending_grading'] pending_grading = notifications['pending_grading']
......
...@@ -17,6 +17,7 @@ def url_class(is_active): ...@@ -17,6 +17,7 @@ def url_class(is_active):
<div class="inner-wrapper"> <div class="inner-wrapper">
<ol class="course-tabs"> <ol class="course-tabs">
% for tab in get_course_tabs(user, course, active_page): % for tab in get_course_tabs(user, course, active_page):
% if tab.name != "Grading Panel" or staff_access:
<li> <li>
<a href="${tab.link | h}" class="${url_class(tab.is_active)}"> <a href="${tab.link | h}" class="${url_class(tab.is_active)}">
${tab.name | h} ${tab.name | h}
...@@ -28,6 +29,7 @@ def url_class(is_active): ...@@ -28,6 +29,7 @@ def url_class(is_active):
%endif %endif
</a> </a>
</li> </li>
% endif
% endfor % endfor
<%block name="extratabs" /> <%block name="extratabs" />
% if masquerade is not UNDEFINED: % if masquerade is not UNDEFINED:
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
<section class="grading-wrapper"> <section class="grading-wrapper">
<h2>Student Response</h2> <h2>Student Response</h2>
<div class="grading-message">
</div>
<div class="grading-container"> <div class="grading-container">
<div class="submission-wrapper"> <div class="submission-wrapper">
<h3></h3> <h3></h3>
...@@ -53,8 +56,6 @@ ...@@ -53,8 +56,6 @@
</div> </div>
</div> </div>
<div class="grading-message">
</div>
</section> </section>
</section> </section>
......
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