X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d14cf519fd876274900758a903e7e390d38922d5..5e2c567b7f469f0c8814082f0731806c047884d9:/app/views/traces/list.html.erb
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' %>