X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f7dd79daf44de5f8f8b6c246a269e44bb258175..e8ac6bd5d918bb71647c05da4b2b294a1423948b:/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..fc7b59929 100644
--- a/app/views/user/view.html.erb
+++ b/app/views/user/view.html.erb
@@ -10,6 +10,9 @@
<%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %>
<%= 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) %>
@@ -49,6 +52,9 @@
<%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list', :display_name => @this_user.display_name %>
<%= 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 %>