X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f7dd79daf44de5f8f8b6c246a269e44bb258175..d1cc387080152269cb142d150e06b0a27f8b98be:/app/views/user/view.html.erb?ds=sidebyside
diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb
index 67619a536..274afa81f 100644
--- a/app/views/user/view.html.erb
+++ b/app/views/user/view.html.erb
@@ -7,9 +7,12 @@
-
- <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %>
+ <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name, :anchor => "map=1/0/0" %>
<%= number_with_delimiter(@user.changesets.size) %>
+ -
+ <%= link_to t('user.view.my notes'), :controller => 'notes', :action=> 'mine' %>
+
-
<%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %>
<%= number_with_delimiter(@user.traces.size) %>
@@ -46,9 +49,12 @@
-
- <%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list', :display_name => @this_user.display_name %>
+ <%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list', :display_name => @this_user.display_name, :anchor => "map=1/0/0" %>
<%= number_with_delimiter(@this_user.changesets.size) %>
+ -
+ <%= link_to t('user.view.notes'), :controller => 'notes', :action=> 'mine' %>
+
-
<%= link_to t('user.view.traces'), :controller => 'trace', :action => 'list', :display_name => @this_user.display_name %>
<%= number_with_delimiter(@this_user.traces.size) %>
@@ -69,8 +75,10 @@
-
<% if @user and @user.is_friends_with?(@this_user) %>
<%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => @this_user.display_name), :method => :post %>
- <% else %>
+ <% elsif @user %>
<%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name), :method => :post %>
+ <% else %>
+ <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name) %>
<% end %>