add hovercards to links in likes
This commit is contained in:
parent
f0fa79bb09
commit
fdaa44ca9c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue