From fdaa44ca9c476f2cf8062a273210999911cac501 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 6 Jul 2011 21:09:24 -0700 Subject: [PATCH] add hovercards to links in likes --- app/helpers/notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 5c30f9ede..a9353fd5a 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -56,7 +56,7 @@ module NotificationsHelper actors =people || note.actors number_of_actors = actors.count sentence_translations = {:two_words_connector => " #{t('notifications.index.and')} ", :last_word_connector => ", #{t('notifications.index.and')} " } - actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase.strip)}", person_path(person))} + actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase.strip)}", person_path(person), :class => 'hovercardable')} if number_of_actors < 4 message = actor_links.to_sentence(sentence_translations)