<ul class='secondary-actions clearfix'>
<li><%= t('.description') %></li>
<li><%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %></li>
- <li><%= link_to t('.upload_trace'), :action => 'create' %></li>
+ <li><%= link_to t('.upload_trace'), new_trace_path %></li>
<% if @tag %>
<li><%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'list', :display_name => nil, :tag => nil, :page => nil %></li>
<li><%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %></li>
<% if @display_name %>
<li><%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'list', :display_name => nil, :tag => nil, :page => nil %></li>
<% 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 %>
+ <li><%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %></li>
<% end %>
<% end %>
</ul>
<%= render :partial => 'trace_paging_nav' %>
<% else %>
- <h4><%= t '.empty_html', :upload_link => trace_create_path %></h4>
+ <h4><%= t '.empty_html', :upload_link => new_trace_path %></h4>
<% end %>
<%= render :partial => 'trace_optionals' %>