fix notification links
This commit is contained in:
parent
7969b52035
commit
0473037d1b
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ class NotificationsController < VannaController
|
|||
end
|
||||
notifications.each do |n|
|
||||
n[:actors] = n.actors
|
||||
n[:translation] = object_link(n, n.actors.map { |a| person_link(a) })
|
||||
n[:translation] = notification_message_for(n)
|
||||
n[:translation_key] = n.popup_translation_key
|
||||
n[:target] = n.translation_key == "notifications.mentioned" ? n.target.post : n.target
|
||||
end
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ module NotificationsHelper
|
|||
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|
|
||||
person_link(person, :class => 'hovercardable', :what => 'thefuck' )
|
||||
person_link(person, :class => 'hovercardable')
|
||||
}
|
||||
|
||||
if number_of_actors < 4
|
||||
|
|
|
|||
Loading…
Reference in a new issue