- <!-- my traces -->
- <li class="nav-item">
- <%= link_to t(".see_my_traces"), { :action => "mine", :page => nil }, { :class => "nav-link active" } %>
- </li>
- <% else %>
- <!-- public_traces_from @target_user -->
- <li class="nav-item">
- <%= link_to t(".see_all_traces"), { :controller => "traces", :action => "index", :display_name => nil, :page => nil }, { :class => "nav-link" } %>
- </li>
- <% if current_user && current_user != @target_user %>
- <li class="nav-item">
- <%= link_to t(".see_my_traces"), { :action => "mine", :page => nil }, { :class => "nav-link" } %>
- </li>
- <% end %>
+ <% end %>
+ <% elsif current_user && current_user == @target_user %>
+ <li class="nav-item">
+ <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil, :page => nil }, { :class => "nav-link" } %>
+ </li>
+ <!-- my traces -->
+ <li class="nav-item">
+ <%= link_to t(".my_traces"), { :action => "mine", :page => nil }, { :class => "nav-link active" } %>
+ </li>
+ <% else %>
+ <!-- public_traces_from @target_user -->
+ <li class="nav-item">
+ <%= link_to t(".all_traces"), { :controller => "traces", :action => "index", :display_name => nil, :page => nil }, { :class => "nav-link" } %>
+ </li>
+ <% if current_user && current_user != @target_user %>