<%= simple_format(@this_user.description) %>
+<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
+
User location
+ No home location has been set.
+ <% if @user and @this_user.id == @user.id %>
+ You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
+ <% end %>
<% else %>
-<%= link_to 'Send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %>
-<%= link_to 'Add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %>
-<%= link_to 'View diary', :controller => 'user', :action=>'diary', :display_name => @this_user.display_name %>
-<%= link_to 'View traces', :controller => 'trace', :action=>'view', :display_name => @this_user.display_name %>
-
-<% end %>
-
Nearby users
-<% 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 %>
-
-
+
<%end%>
-<% else %>
- No home location has been set.
+
+
<% if @user and @this_user.id == @user.id %>
- You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
+
Nearby users:
+ <% if @this_user.nearby.empty? %>
+ There are no users who admit to mapping nearby yet.
+ <% else %>
+
+
+ <%= render :partial => 'friend_map' %>
+