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 => "clearfix row", :data => { :user => user_data } do %>
9 <%= user_thumbnail contact %>
12 <p class='text-muted mb-0'>
13 <%= link_to contact.display_name, user_path(contact) %>
14 <% if @user.home_location? and contact.home_location? %>
15 <% distance = @user.distance(contact) %>
17 (<%= t ".m away", :count => (distance * 1000).round %>)
19 (<%= t ".km away", :count => distance.round %>)
24 <% changeset = contact.changesets.first %>
26 <%= t(".latest_edit_html", :ago => friendly_date_ago(changeset.created_at)) %>
27 <% comment = changeset.tags["comment"].to_s == "" ? t("browse.no_comment") : changeset.tags["comment"] %>
28 <q><%= link_to(comment,
29 { :controller => "browse", :action => "changeset", :id => changeset.id },
30 { :title => t("changesets.changeset.view_changeset_details") }) %></q>
32 <%= t "changesets.changeset.no_edits" %>
36 <nav class='secondary-actions'>
37 <ul class='clearfix text-muted'>
38 <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
40 <% if current_user.friends_with?(contact) %>
41 <%= link_to t("users.show.remove as friend"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
43 <%= link_to t("users.show.add as friend"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>