add a missing space for notifications with less than 4 people

This commit is contained in:
maxwell 2011-03-17 10:50:11 -07:00
parent 3c64da8981
commit 388423a76a

View file

@ -48,7 +48,7 @@ module NotificationsHelper
number_of_actors = actors.count
actor_links = actors.collect{ |person| link_to("#{h(person.name.titlecase)}", person_path(person))}
if number_of_actors < 4
message = actor_links.join(',')
message = actor_links.join(', ')
else
message = actor_links[0..2].join(', ') << "<a class='more' href='#'> #{t('.and_others', :number =>(number_of_actors - 3))}</a><span class='hidden'>, " << actor_links[3..(number_of_actors-2)].join(', ')<< " #{t('.and')} "<< actor_links.last << '</span>'
end