From 9f19eafcf07cdee659a0ccbcf14953a736660421 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Wed, 23 Jan 2013 14:12:06 -0500 Subject: [PATCH] Update main notification dashboard with new styles. --- lms/djangoapps/open_ended_grading/views.py | 10 +++-- .../sass/course/_open_ended_grading.scss | 38 +++++++++++++++++++ .../combined_notifications.html | 24 +++++++----- 3 files changed, 59 insertions(+), 13 deletions(-) diff --git a/lms/djangoapps/open_ended_grading/views.py b/lms/djangoapps/open_ended_grading/views.py index 931cbb7337..2269ff0bac 100644 --- a/lms/djangoapps/open_ended_grading/views.py +++ b/lms/djangoapps/open_ended_grading/views.py @@ -193,6 +193,11 @@ def combined_notifications(request, course_id): notification_tuples=open_ended_notifications.NOTIFICATION_TYPES notification_list = [] + description_dict = { + 'Peer Grading': "View all problems that require peer assessment in this particular course.", + 'Staff Grading': "View ungraded submissions submitted by your students for the open ended problems in the course.", + 'Problems you have submitted': "View open ended problems that you have previously submitted for grading." + } for response_num in xrange(0,len(notification_tuples)): tag=notification_tuples[response_num][0] if tag in response: @@ -200,13 +205,12 @@ def combined_notifications(request, course_id): human_name = notification_tuples[response_num][2] url = _reverse_without_slash(url_name, course_id) has_img = response[tag] - img_path = "/static/images/slider-handle.png" notification_item = { 'url' : url, 'name' : human_name, - 'has_img' : has_img, - 'img' : img_path, + 'alert' : has_img, + 'description': description_dict[human_name] } notification_list.append(notification_item) diff --git a/lms/static/sass/course/_open_ended_grading.scss b/lms/static/sass/course/_open_ended_grading.scss index 86ab5f4aa0..b7a28cbe0c 100644 --- a/lms/static/sass/course/_open_ended_grading.scss +++ b/lms/static/sass/course/_open_ended_grading.scss @@ -13,5 +13,43 @@ padding: 7px; } } + .notification-container + { + margin: 30px 0px; + } + + .alert + { + background-color: red; + } + .notification + { + margin: 10px; + width: 30%; + @include inline-block; + vertical-align: top; + .notification-link + { + display:block; + height: 8em; + padding: 10px; + border: 1px solid black; + text-align: center; + } + .notification-title + { + text-transform: uppercase; + } + .notification-link:hover + { + background-color: #eee; + color: black; + } + .notification-description + { + padding-top:5%; + } + @include clearfix; + } } diff --git a/lms/templates/open_ended_problems/combined_notifications.html b/lms/templates/open_ended_problems/combined_notifications.html index 6d8541b567..f8267d9704 100644 --- a/lms/templates/open_ended_problems/combined_notifications.html +++ b/lms/templates/open_ended_problems/combined_notifications.html @@ -23,19 +23,23 @@ No items require attention at the moment. %else: - + %endif %endif - \ No newline at end of file +