add hovercards to links in likes

This commit is contained in:
danielgrippi 2011-07-06 21:09:24 -07:00
parent f0fa79bb09
commit fdaa44ca9c

View file

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