basic unread/read states

This commit is contained in:
Dan Hansen 2011-07-02 15:14:02 -07:00
parent 3941d562a8
commit 0b56ade468
2 changed files with 7 additions and 1 deletions

View file

@ -52,7 +52,9 @@
$.each(self.notifications.notifications, function(index, notifications) {
$.each(notifications, function(index, notification) {
$("<div/>", { "class": "notification_element" })
$("<div/>")
.addClass("notification_element")
.addClass((notification.unread) ? "unread" : "read" )
.html(notification.translation)
.prepend($("<img/>", { src: notification.actors[0].avatar }))
.prependTo(self.dropdownNotifications);

View file

@ -3082,6 +3082,10 @@ ul.left_nav
.notification_element
:padding 10px 20px
:min-height 30px
.unread
:background #CCC
.read
:background white
img
:height 30px