Remove extra whitespace inside person_link that's causing bad formatting on likes list

This commit is contained in:
Gonzalo Rodriguez 2011-09-24 19:07:17 -03:00
parent 6ffcec0885
commit be00536810

View file

@ -32,7 +32,7 @@ module PeopleHelper
opts[:class] ||= "" opts[:class] ||= ""
opts[:class] << " self" if defined?(user_signed_in?) && user_signed_in? && current_user.person == person opts[:class] << " self" if defined?(user_signed_in?) && user_signed_in? && current_user.person == person
remote_or_hovercard_link = "/people/#{person.id}".html_safe remote_or_hovercard_link = "/people/#{person.id}".html_safe
"<a data-hovercard='#{remote_or_hovercard_link}' #{person_href(person)} class='#{opts[:class]}' #{ ("target=" + opts[:target]) if opts[:target]}>#{h(person.name)} </a>".html_safe "<a data-hovercard='#{remote_or_hovercard_link}' #{person_href(person)} class='#{opts[:class]}' #{ ("target=" + opts[:target]) if opts[:target]}>#{h(person.name)}</a>".html_safe
end end
def person_image_tag(person, size=nil) def person_image_tag(person, size=nil)