+<% else %>
+<%= link_to 'Send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %><br />
+<%= link_to 'Add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %><br />
+<%= link_to 'View diary', :controller => 'user', :action=>'diary', :display_name => @this_user.display_name %>
+<% end %>
+
+<h3>Nearby users</h3>
+<% if @this_user.home_lat and @this_user.home_lon %>
+ <% if @this_user.nearby.empty? %>
+ There are no users who admit to mapping nearby.
+ <% else %>
+ <table id="nearbyusers">
+ <% @this_user.nearby(1,1).each do |nearby| %>
+ <tr>
+ <td class="username"><%= link_to nearby.display_name, :controller => 'user', :action => 'view', :display_name => nearby.display_name %></td>
+ <td class="message">(<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>)</td>
+ </tr>
+ <%end%>
+ </table>
+
+ <%end%>
+<% else %>
+ No home location has been set.
+<% end %>