X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8ba86337c3ec0666c367ec6d9bd3de07a07df8b5..57938f78c7a5f3643560565e98f4e9d2b31aa40b:/app/views/user/_contact.html.erb diff --git a/app/views/user/_contact.html.erb b/app/views/user/_contact.html.erb index a13b2c50a..82ca579d9 100644 --- a/app/views/user/_contact.html.erb +++ b/app/views/user/_contact.html.erb @@ -1,7 +1,15 @@ - + <% + user_data = { + :lon => contact.home_lon, + :lat => contact.home_lat, + :icon => type == "friend" ? "marker-blue.png" : "marker-green.png", + :description => render(:partial => "popup", :object => contact, :locals => {:type => type}) + } + %> + <%= content_tag "td", :rowspan => 3, :data => {:user => user_data} do %> <%= user_thumbnail contact %> - + <% end %> <%= link_to h(contact.display_name), :controller => 'user', :action => 'view', :display_name => contact.display_name %> <% if @this_user.home_lon and @this_user.home_lat and contact.home_lon and contact.home_lat %>