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, changeset_path(changeset), :title => t("changesets.changeset.view_changeset_details") %></q>
30 <%= t "changesets.changeset.no_edits" %>
34 <nav class='secondary-actions'>
35 <ul class='clearfix text-muted'>
36 <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
38 <% if current_user.friends_with?(contact) %>
39 <%= link_to t("users.show.remove as friend"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
41 <%= link_to t("users.show.add as friend"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>