From: Dan Karran Date: Sat, 23 Jun 2007 10:39:23 +0000 (+0000) Subject: Link from user profile to view traces and to set home location if none is set. X-Git-Tag: live~8325 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b2fa1c24d62002f870c9bf4dad4010c8953505a8 Link from user profile to view traces and to set home location if none is set. --- diff --git a/app/views/user/view.rhtml b/app/views/user/view.rhtml index 2090c2d5a..f631a1391 100644 --- a/app/views/user/view.rhtml +++ b/app/views/user/view.rhtml @@ -13,7 +13,9 @@ <% 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 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

@@ -34,4 +36,7 @@ <%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. + <% end %> <% end %>