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