2 :lon => contact.home_lon,
3 :lat => contact.home_lat,
4 :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
5 :description => render(:partial => "popup", :object => contact, :locals => { :type => type })
7 <%= tag.div :class => "contact-activity clearfix", :data => { :user => user_data } do %>
8 <%= user_thumbnail contact %>
9 <div class='activity-details'>
10 <p class='text-muted'>
11 <%= link_to contact.display_name, user_path(contact) %>
12 <% if @user.home_lon and @user.home_lat and contact.home_lon and contact.home_lat %>
13 <% distance = @user.distance(contact) %>
15 (<%= t "users.show.m away", :count => (distance * 1000).round %>)
17 (<%= t "users.show.km away", :count => distance.round %>)
22 <% changeset = contact.changesets.first %>
24 <%= t("users.show.latest edit", :ago => time_ago_in_words(changeset.created_at, :scope => :'datetime.distance_in_words_ago')) %>
25 <% comment = changeset.tags["comment"].to_s == "" ? t("browse.no_comment") : changeset.tags["comment"] %>
26 <q><%= link_to(comment,
27 { :controller => "browse", :action => "changeset", :id => changeset.id },
28 { :title => t("changesets.changeset.view_changeset_details") }) %></q>
30 <%= t "changesets.changeset.no_edits" %>
34 <ul class='secondary-actions clearfix text-muted'>
35 <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
37 <% if current_user.is_friends_with?(contact) %>
38 <%= link_to t("users.show.remove as friend"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
40 <%= link_to t("users.show.add as friend"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>