Update main notification dashboard with new styles.

This commit is contained in:
Diana Huang
2013-01-23 14:12:06 -05:00
committed by Vik Paruchuri
parent 4140b74e47
commit 9f19eafcf0
3 changed files with 59 additions and 13 deletions

View File

@@ -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)