- <td rowspan="2">
- <% if contact.image %>
- <%= image_tag url_for_file_column(contact, "image"), :class => "user_thumbnail" %>
- <% else %>
- <%= image_tag "anon_small.png", :class => "user_thumbnail" %>
- <% end %>
- </td>
+ <%
+ 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 %>