X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/33ea119c8f520a7e679e38b569c202976907a501..2ab3d56102661f31cc41ef3edca5d72f904a3070:/app/views/traces/list.html.erb?ds=sidebyside
diff --git a/app/views/traces/list.html.erb b/app/views/traces/list.html.erb
index 4c433ce66..3cd90f3e7 100644
--- a/app/views/traces/list.html.erb
+++ b/app/views/traces/list.html.erb
@@ -3,7 +3,7 @@
- <%= t('.description') %>
- <%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
- - <%= link_to t('.upload_trace'), :action => 'create' %>
+ - <%= link_to t('.upload_trace'), new_trace_path %>
<% if @tag %>
- <%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
- <%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %>
@@ -11,8 +11,8 @@
<% if @display_name %>
- <%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'list', :display_name => nil, :tag => nil, :page => nil %>
<% end %>
- <%= unless_user(@target_user, :li) do %>
- <%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %>
+ <% if current_user && current_user != @target_user %>
+ - <%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %>
<% end %>
<% end %>
@@ -39,7 +39,7 @@
<%= render :partial => 'trace_paging_nav' %>
<% else %>
- <%= t '.empty_html', :upload_link => trace_create_path %>
+ <%= t '.empty_html', :upload_link => new_trace_path %>
<% end %>
<%= render :partial => 'trace_optionals' %>