From a7af886da2340c490aecec6605717eaeb5a12116 Mon Sep 17 00:00:00 2001 From: Steven Fuchs Date: Thu, 22 Dec 2011 15:53:14 -0500 Subject: [PATCH] add 'read' class ro read messages to match the 'unread' class associated with unread messages. This will keep us from attaching jquery functionality to notification types we may not know about. --- app/views/notifications/index.html.haml | 2 +- app/views/notifications/index.mobile.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index 88a098ab2..0935dea0e 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -21,7 +21,7 @@ .span-8.notifications_for_day - notes.each do |note| - .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"} + .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : 'read'}"} - if note.type == "Notifications::StartedSharing" && contact = current_user.contact_for(note[:target]) .right = aspect_membership_dropdown(contact, note[:target], 'left') diff --git a/app/views/notifications/index.mobile.haml b/app/views/notifications/index.mobile.haml index 18ea33fef..3f27eb8bc 100644 --- a/app/views/notifications/index.mobile.haml +++ b/app/views/notifications/index.mobile.haml @@ -8,7 +8,7 @@ = day %ul.notifications_for_day - notes.each do |note| - .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : ''}"} + .stream_element{:data=>{:guid => note.id}, :class => "#{note.unread ? 'unread' : 'read'}"} = person_image_link(note.actors.last)