1 <div class='contact-activity clearfix'>
4 :lon => contact.home_lon,
5 :lat => contact.home_lat,
6 :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
7 :description => render(:partial => "popup", :object => contact, :locals => {:type => type})
10 <%= content_tag "td", :rowspan => 3, :data => {:user => user_data} do %>
11 <%= user_thumbnail contact %>
13 <div class='activity-details'>
14 <p class='deemphasize'>
15 <%= link_to h(contact.display_name), :controller => 'user', :action => 'view', :display_name => contact.display_name %>
16 <% if @this_user.home_lon and @this_user.home_lat and contact.home_lon and contact.home_lat %>
17 <% distance = @this_user.distance(contact) %>
19 (<%= t 'user.view.m away', :count => (distance * 1000).round %>)
21 (<%= t 'user.view.km away', :count => distance.round %>)
26 <% changeset = contact.changesets.first %>
28 <%= t('user.view.latest edit', :ago => t('user.view.ago', :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
29 <% comment = changeset.tags['comment'].to_s != '' ? changeset.tags['comment'] : t('changeset.changeset.no_comment') %>
31 {:controller => 'browse', :action => 'changeset', :id => changeset.id},
32 {:title => t('changeset.changeset.view_changeset_details')})
35 <%= t'changeset.changeset.no_edits' %>
39 <ul class='secondary-actions clearfix deemphasize'>
40 <li><%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => contact.display_name %></li>
42 <% if @user.is_friends_with?(contact) %>
43 <%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
45 <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>