use notification people link for likes.... it should now get refactored, but it works nicely now, even with I18n
This commit is contained in:
parent
4c535f3eb4
commit
56644c9d1e
2 changed files with 3 additions and 3 deletions
|
|
@ -48,8 +48,8 @@ module NotificationsHelper
|
|||
end
|
||||
end
|
||||
|
||||
def notification_people_link(note)
|
||||
actors = note.actors
|
||||
def notification_people_link(note, people=nil)
|
||||
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))}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@
|
|||
= image_tag('icons/heart.png')
|
||||
= link_to t('.people_like_this', :count => likes.length), "#", :class => "expand_likes"
|
||||
%span.hidden.likes_list
|
||||
= likes_list(likes)
|
||||
= notification_people_link(nil, likes.map{|x| x.author})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue