X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcbc807526b5eb456e33e22d794374ae7ff3723b..f69abaa9cfba28892022910cddd5d0d8c3e19ba7:/app/views/user/_map.html.erb?ds=inline diff --git a/app/views/user/_map.html.erb b/app/views/user/_map.html.erb index 912bde949..7c29526cf 100644 --- a/app/views/user/_map.html.erb +++ b/app/views/user/_map.html.erb @@ -39,7 +39,7 @@ <% if marker %> marker = addMarkerToMap( new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>), null, - '<%= escape_javascript(render :partial => "popup", :object => @user, :locals => { :type => "your location" }) %>' + '<%= escape_javascript(render(:partial => "popup", :object => @user, :locals => { :type => "your location" })) %>' ); <% end %> @@ -48,7 +48,7 @@ <% nearest.each do |u| %> addMarkerToMap(new OpenLayers.LonLat( <%= u.home_lon %>, <%= u.home_lat %>), near_icon.clone(), - '<%= escape_javascript(render :partial => "popup", :object => u, :locals => { :type => "nearby mapper" }) %>' + '<%= escape_javascript(render(:partial => "popup", :object => u, :locals => { :type => "nearby mapper" })) %>' ); <% end %> @@ -57,7 +57,7 @@ <% friends.each do |u| %> addMarkerToMap(new OpenLayers.LonLat( <%= u.home_lon %>, <%= u.home_lat %>), friend_icon.clone(), - '<%= escape_javascript(render :partial => "popup", :object => u, :locals => { :type => "friend" }) %>' + '<%= escape_javascript(render(:partial => "popup", :object => u, :locals => { :type => "friend" })) %>' ); <% end %> @@ -82,7 +82,7 @@ marker = addMarkerToMap( lonlat, null, - '<%= escape_javascript(render :partial => "popup", :object => @user, :locals => { :type => "your location" }) %>' + '<%= escape_javascript(render(:partial => "popup", :object => @user, :locals => { :type => "your location" })) %>' ); } }